Viewing 15 posts - 91 through 105 (of 1,085 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...
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...
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.
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 ...
October 13, 2006 at 10:30 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...
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...
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?)
October 9, 2006 at 5:06 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...
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...
October 3, 2006 at 2:45 pm
Good thinking! [ Sheesh..., I must 'a left my bulldozer at home.... ]
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))
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...
October 3, 2006 at 1:39 pm
I think I get you. Can you wrap the whole thing in sp_executesql?
October 3, 2006 at 1:14 pm
Viewing 15 posts - 91 through 105 (of 1,085 total)