Viewing 10 posts - 1 through 10 (of 10 total)
December 17, 2018 at 10:46 am
December 17, 2018 at 8:59 am
The queries are not the same. You are sorting by constant and you should order sort by the id in order to get the same results, right?
December 17, 2018 at 12:03 am
g.britton (9/4/2015)
P Jones (3/6/2013)
WHILE 1=1
BEGIN
DELETE TOP (5000) FROM table WHERE .....
IF @@ROWCOUNT < 5000 BREAK
END
and you can add a WAITFOR to delay between iterations
Adjust the 5000 to suit...
September 4, 2015 at 12:20 pm
Thanks a lot. You may want to edit the article a little bit since on Window 8.1 you can choose from two types of VM generations (and of course I...
August 13, 2015 at 2:15 pm
January 8, 2015 at 9:41 am
Thanks for the questions. The subquery in ORDER BY clause is possible.
December 27, 2014 at 3:31 am
I really want to see the performance difference between index on int/bigint column and datetime2 column.
December 23, 2014 at 2:38 am
What about a new tutorial using `Gzip` and SQL Server 2012?
What about supporting UTF-8 compression, too - compress `NVARCHAR(MAX)`, too.
October 15, 2014 at 9:42 am
We are using the sp_whoisactive stored procedure. You can check it:
http://sqlmag.com/sql-server/spwhoisactive
or downloaded it from here:
http://sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx
July 2, 2014 at 9:03 am
Viewing 10 posts - 1 through 10 (of 10 total)