Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax qustion when creating TEMP table on the fly
Message
 
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00778391
Message ID:
00778487
Views:
16
Hi!,

Check if there is some code in the procedure dropping the table, because i've tried that way, and it works.

You can also create the table structure with the EXEC command,

see the books online for more information about the EXEC,


Also check the String that's being generated with the fields

You can use this exampe with the authors table on the Pubs database from Sql Server:

exec ('select Au_LName, Au_FName, Phone into tmpAuthors from Authors where State = "CA"')

It'll work, check it out.

good luck
Previous
Reply
Map
View

Click here to load this message in the networking platform