Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sent_sara
Constraint Violating Yak Guru
377 Posts |
Posted - 2011-01-11 : 08:54:53
|
Hi ,I need to store the dynamic query into temp table(#temp).but iam not able to,could you help me correcting the below query?select * into #tempExec(@sql) |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2011-01-11 : 09:12:07
|
| #temp must already exist. Create it first.INSERT INTO #tempEXEC(@sql)JimEveryday I learn something that somebody else already knew |
 |
|
|
sent_sara
Constraint Violating Yak Guru
377 Posts |
Posted - 2011-01-11 : 09:28:10
|
I DONT know the column name explicitly..column name varies dynamicallyquote: Originally posted by jimf #temp must already exist. Create it first.INSERT INTO #tempEXEC(@sql)JimEveryday I learn something that somebody else already knew
|
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|
|