How to insert ONLY HEADER of one table into another table?
Rohit Kainth
Select an image from your device to upload
I think question is interesting but not framed correctly. Please find below my query I used for this question and as per your soluction, question should be “How to create table with same column without using create table command”.
Please take it positvely and your question is really interesting, it drew my attention :).
Regards,Ekta Pandey Pareta
SELECT C.NAME INTO #TEST FROM SYS.COLUMNS C JOIN SYS.OBJECTS O ON C.OBJECT_ID = O.OBJECT_ID WHERE O.NAME = ‘YOURTABLENAME’SELECT * FROM #TEST