Viewing 10 posts - 1 through 10 (of 10 total)
I wholeheartedly agree with Steve’s article.
I’ve interviewed a lot of people and came to this conclusion: they have 20 years of SQL Server experience almost always means that they haven’t...
April 8, 2019 at 7:42 pm
What is going to be executing this stored procedure? It first glance I thought you might have these lists generated by a multi-select parameter from SSRS, but judging by the...
April 13, 2018 at 1:36 pm
TimCarrett (9/2/2016)
SELECT TOP 5
SV.number AS Number
INTO #numbers
FROM master.dbo.spt_values SV
WHERE SV.type = 'P'
AND SV.number BETWEEN 1 AND @RegularRangeEnd
ORDER BY NEWID();
And
SELECT TOP 1
SV.number AS MegaNumber
INTO #mega_number
FROM master.dbo.spt_values SV
WHERE SV.type...
September 2, 2016 at 10:25 am
Okay, sorry, here is the correct version. I don't know how I managed to post the wrong one, but I did.
--========================================================================
-- To populate the Regular Range End,...
September 1, 2016 at 6:34 pm
yeah, I know I posted the wrong version. Oh well. You get the idea.
September 1, 2016 at 5:30 pm
Actually, if I recall correctly, this ended up being a permissions issue. The account running the SSIS package had read only access to the directory and so when you...
July 23, 2015 at 5:03 pm
Maybe not. I guess I didn't know that one. But the overall point, as far as cursors go, is if you have a situation where you need to...
July 6, 2015 at 2:02 pm
Someone earlier asked for an example of something that works best when using cursors and here is a script I have that I run when I need to make sure...
July 6, 2015 at 12:14 pm
Thank you for writing this. I used to ask a cursor question when interviewing candidates and I got the same answer every time “you shouldn’t use cursors, they...
June 1, 2015 at 2:31 pm
I've never posted before, so I hope this works, but this here is a small part of a stored proc that drives a report I have. The report shows...
December 5, 2013 at 6:08 pm
Viewing 10 posts - 1 through 10 (of 10 total)