DBA Morning Check List
This article helps the DBA find and fix issues quickly by creating a DBA Morning Checklist.
2017-02-02 (first published: 2008-04-14)
59,091 reads
This article helps the DBA find and fix issues quickly by creating a DBA Morning Checklist.
2017-02-02 (first published: 2008-04-14)
59,091 reads
This article enables DBAs to efficiently upgrade servers by assembling an upgrade team, using an upgrade template, and communicating effectively.
2009-05-08
13,626 reads
This article demonstrates the negative affect that linked servers can cause in queries and offers alternatives to speed up performance.
2008-03-07
15,653 reads
By Steve Jones
We published an article recently at SQL Server Central on Tally Tables in Fabric...
By James Serra
In today’s data-driven world, organizations need the ability to analyze and act on data...
This month’s T-SQL Tuesday blog party is hosted by Deborah Melkin – Data Platform MVP,...
Comments posted to this topic are about the item Dynamic T-SQL Script Parameterization Using...
Explore the world of Omegle, the platform that connects you with strangers worldwide. Learn...
Hi , Im Facing the Below Issue in Ananlytics. We have a Inventory Partition...
I created a new sequence in SQL Server 2022 with this code.
CREATE SEQUENCE myseqtest START WITH 1 INCREMENT BY 1; GOI want to use this to insert some data from another table into a new table with this sequence. Which of these queries shows the way to do this efficiently?
-- 1 INSERT dbo.NewMonthSales (SaleID, saleyear, salemonth, currSales) SELECT NEXT VALUE FOR myseqtest , ms.saleyear , ms.salemonth , ms.currMonthSales FROM dbo.MonthSales AS ms; GO -- 2 INSERT dbo.NewMonthSales (SaleID, saleyear, salemonth, currSales) SELECT NEXT VALUE , ms.saleyear , ms.salemonth , ms.currMonthSales FROM dbo.MonthSales AS ms, myseqtest; GO --3 DECLARE mycurs CURSOR FOR SELECT ms.saleyear , ms.salemonth , ms.currMonthSales FROM dbo.MonthSales AS ms DECLARE @yr INT, @mn INT, @sales NUMERIC(10,2) FETCH NEXT FROM mycurs INTO @yr, @mn, @sales WHILE @@FETCH_STATUS = 0 BEGIN INSERT dbo.NewMonthSales (SaleID, saleyear, salemonth, currSales) SELECT NEXT VALUE FOR myseqtest , @yr , @mn , @sales FETCH NEXT FROM mycurs INTO @yr, @mn, @sales ENDSee possible answers