Viewing 15 posts - 9,646 through 9,660 (of 26,489 total)
Something changed on my VM, but not sure what because I didn't change anything. All of a sudden this is the normal results:
UNION method:
Elapsed Time (ms) 2665
UNPIVOT method:...
September 11, 2012 at 11:58 am
Set up a quick test here as well:
UNION method:
Elapsed Time (ms) 1339
UNPIVOT method:
Elapsed Time (ms) 1181
Ran it several times with similar results. Sorry, didn't set up a...
September 11, 2012 at 11:47 am
Just a quick test using 6 million rows:
Lynn's method:
Elapsed Time (ms) 8276
ScottPletcher's first method:
Warning: Null value is eliminated by an aggregate or other SET operation.
Elapsed Time (ms) 12244
ScottPletcher's...
September 11, 2012 at 11:12 am
Now, based on the data above, what is the expected output?
September 11, 2012 at 10:20 am
ChrisM@Work (9/11/2012)
Lynn Pettis (9/11/2012)
ChrisM@Work (9/11/2012)
oscarooko (9/11/2012)
September 11, 2012 at 10:08 am
jralston88 (9/11/2012)
September 11, 2012 at 10:02 am
chrismat (9/11/2012)
Kingston Dhasian (9/11/2012)
What are the expected results based on your data?
If you copy/paste my post into SSMS and run it, the last active result set contains some question marks....
September 11, 2012 at 9:55 am
In Object Explorer, right click on the database, select Tasks, then Generate Scripts, then follow along with the wizard.
September 11, 2012 at 9:45 am
ChrisM@Work (9/11/2012)
oscarooko (9/11/2012)
September 11, 2012 at 9:43 am
You might want to put a DELAY in the TRY part of the code after the commit to allow other activities to access the table from which you are deleting...
September 11, 2012 at 9:39 am
You could try using something like this:
declare @BatchSize int = 10000;
while @BatchSize <> 0
begin
begin try
begin transaction
...
September 11, 2012 at 9:36 am
You may be deleting in batches, but the whole thing is one big transaction.
September 11, 2012 at 9:21 am
Would help to see the stored procedure code and how you are actually calling it. Just based on your initial post, hard to tell you what is happening.
September 11, 2012 at 9:05 am
ChrisM@Work (9/11/2012)
Lynn Pettis (9/11/2012)
ChrisM@Work (9/11/2012)
oscarooko (9/11/2012)
September 11, 2012 at 9:03 am
ChrisM@Work (9/11/2012)
oscarooko (9/11/2012)
September 11, 2012 at 8:55 am
Viewing 15 posts - 9,646 through 9,660 (of 26,489 total)