Viewing 4 posts - 1 through 4 (of 4 total)
Hi Mark,
You can create a tabel defining column names using variables. See below example:
DECLARE @W_SQL AS NVARCHAR(2000)
DECLARE @W_ColName_1 AS NVARCHAR(50)
DECLARE @W_ColName_2 AS NVARCHAR(50)
SET @W_ColName_1 = 'Column_a' SET @W_ColName_2 = 'Column_b'
SET @W_SQL = 'CREATE TABLE...
May 18, 2006 at 1:37 am
Thanks Smith..
I tried that also. Since all the rest of my stuff includes multiple batches of CREATE, DROP, INSERT, etc..so i cannot put all these in ELSE part !!
Please think...
May 17, 2006 at 10:07 am
Hi SQLBill, Smith,
Thanks for your suggestion.
Yes, I can use USE statement. But, let me tell you that this is a very silly requirement of our client. She does not want to...
May 17, 2006 at 9:54 am
Asif,
If it is your first article then I must say -decently written article.
I have also dealt with such situations many times but what I noticed in your solution was that you did...
May 17, 2006 at 6:52 am
Viewing 4 posts - 1 through 4 (of 4 total)