syntax:
---------
Select * Into (DestinationTableName) From (SourceTableName) Where 1 = 2
Example:
-----------
Select * Into my_new_table From emp Where 1=2
Wont create any constraint or triggers on the table..
and if you also want to copy the data then remove the
How to copy structure of table
Labels:
SQL Server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment