Hello all. This might sound weird, but I would like to create a temporary table used in a stored procedure without using the typical "CREATE TABLE" to define all the columns. I would like to "copy" the structure for another table without me specifying the individual fields and keys. How can I do that instead of scripting the table and copying it to my stored procedure? It would be really cool if there was something like this:
CREATE TABLE #MyTempTable (COPY STRUCTURE FROM TABLE1)
Is there something like this?
Thanks for your help in advance.
Steve S.
sms@hmbnet.com
CREATE TABLE #MyTempTable (COPY STRUCTURE FROM TABLE1)
Is there something like this?
Thanks for your help in advance.
Steve S.
sms@hmbnet.com