Viewing 15 posts - 91 through 105 (of 1,086 total)
Try this:
DECLARE @BegDate datetime
SET @BegDate = NULL
IF @BegDate = NULL
PRINT 'NULL equals NULL'
IF @BegDate IS NULL
PRINT 'NULL IS NULL'
ELSE IF...
I wasn't born stupid - I had to study.
November 6, 2006 at 12:22 pm
Can you post a bit more of your data? I am guessing that things like "query" can vary in length. Hence, you may have to loop through each line using...
I wasn't born stupid - I had to study.
October 23, 2006 at 8:40 pm
Your procedures look fine. Can you post your calling code in .NET? That might be where the problem is occuring.
I wasn't born stupid - I had to study.
October 23, 2006 at 8:34 pm
I would posit that what you need to do is change the input of your data from:
Sample Data: frm_ky FK_vendors projName
1 1,2 project1
To:
Sample Data: frm_ky FK_vendors ...
I wasn't born stupid - I had to study.
October 13, 2006 at 10:30 am
The Developer is always ahead? Is that the joke?
heheee
I wasn't born stupid - I had to study.
October 13, 2006 at 10:22 am
I think this may be a scope issue. When you execute sp_ExecuteSQL you start a new SPID; hence the called procedure cannot see the calling procedure.
You may...
I wasn't born stupid - I had to study.
October 12, 2006 at 2:42 pm
I've read your very helpful and insightful responses for quite some time now, Gift Peddie.
But I cannot testify to your sanity... ![]()
I wasn't born stupid - I had to study.
October 9, 2006 at 7:05 pm
So Sybil... What color is the sky in your world? (All three in one body - can't be good... do you fight with yourself?)
I wasn't born stupid - I had to study.
October 9, 2006 at 5:06 pm
Now that's what I was looking for!!! ![]()
I wasn't born stupid - I had to study.
October 5, 2006 at 3:33 pm
Not sure where you are using this field... If it is within the table itself, look up IDENTITY in BOL. If it is part of the processing, you can either...
I wasn't born stupid - I had to study.
October 4, 2006 at 10:23 am
This is rather heavy-handed, but if you have a known number of TOP choices, you could use flow control....
DECLARE @Top tinyint
SET @Top = 2
IF @Top = 1...
I wasn't born stupid - I had to study.
October 3, 2006 at 2:45 pm
Good thinking!
[ Sheesh..., I must 'a left my bulldozer at home.... ]
I wasn't born stupid - I had to study.
October 3, 2006 at 2:37 pm
Are you getting an error? The conversion should be implicit. You could always try REPLACE( CONVERT( varchar, GETDATE(), 102), CHAR(46), CHAR(45))
I wasn't born stupid - I had to study.
October 3, 2006 at 2:30 pm
Holy cow! I did not realize that... I guess you would have to loop and insert the data into a temp table, (of course, scope then becomes an issue) and...
I wasn't born stupid - I had to study.
October 3, 2006 at 1:39 pm
I think I get you. Can you wrap the whole thing in sp_executesql?
I wasn't born stupid - I had to study.
October 3, 2006 at 1:14 pm
Viewing 15 posts - 91 through 105 (of 1,086 total)