views:

71

answers:

2

how to dynamically create a table with same columns as that of previous table. in sql

+2  A: 

select * into new_table from table

Thats works in SQL2005

adopilot
thanks for your reply, i need to create oly the table with the entire columns and not the datas. the fresh datas has to be into the new table.
Ranjana
+4  A: 
select * into new_table from table where 1 = 0
Carlos Gutiérrez