Viewing 15 posts - 31 through 45 (of 155 total)
Lynn Pettis (8/22/2014)
Sean Lange (8/22/2014)
brad.mason5 (8/22/2014)
SELECT TaskID
...
August 22, 2014 at 3:15 pm
If a row gets deleted, or added, I will re-order. Thank you for your answer.
August 22, 2014 at 3:10 pm
Luis Cazares (5/29/2014)
WITH VLeaders AS(
SELECT l.LeaderID,
...
May 29, 2014 at 1:21 pm
Reply to sgmunson - thanks for your reply.
I have to admit I have never got into query plans before ... I pressed Ctrl M before running your code and mine...
May 29, 2014 at 1:16 pm
But, isn't that not a 'catch-all query'? It hasn't got any ... WHERE (ProjectID = @ProjectID or ProjectID = 0) AND (ContractType = @ContractType or @ContractType = '') ... etc.
It...
March 28, 2014 at 2:50 pm
I have done that sort of thing before. I might have had, say, 6 various sort conditions to satisfy and I have written as you suggested. So, effectively you write...
March 28, 2014 at 2:44 pm
Ed Wagner (2/10/2014)
sku370870 (2/10/2014)
ChrisM@Work (2/10/2014)
February 10, 2014 at 7:11 am
Sorry, that '@ReturnValue' error was a typo. Caused by the fact that I have probably typed the line
Set @ReturnValue = -999
tens of thousands of times!
February 10, 2014 at 7:09 am
ChrisM@Work (2/10/2014)
The return value of a stored procedure is int, and cannot be changed. Traditionally it was used to indicate success (RETURN 0) or failure (RETURN n, usually negative).
So, what...
February 10, 2014 at 6:50 am
Thank you for your reply.
February 10, 2014 at 6:25 am
Thank you for your reply.
May I ask what is, no doubt, a stupid question. When you say it is the 'version of the instance' ... what does that mean?
If I...
February 10, 2014 at 4:36 am
GilaMonster (10/15/2013)
lnardozi 61862 (10/15/2013)
Without them, the transaction is left open if an error occurs during processing.Unless XACT_ABORT is on.
Can I just check. In the pseudo code below, assume Col1...
October 16, 2013 at 11:14 am
Thanks again for your help. I found this in the mean time which does the job too.
IF OBJECT_ID('#DirTree') IS NOT NULL
DROP TABLE #DirTree
CREATE TABLE #DirTree (
...
October 16, 2013 at 10:12 am
Viewing 15 posts - 31 through 45 (of 155 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy