You can script it to a SQL File and execute it later with a changed tablename. To do this go to the "Querry analyzer" right click on your table and select "Script in new window" -> Create
Now you got a create table script and you only need to modify the name of the table...
(You can do that with all objects, not just tabels)
Dont count on the Menue items to be "exact" - i have a german version of SQL Server ... ;)
Main Topics
Browse All Topics





by: hans_vdPosted on 2002-12-02 at 04:59:47ID: 7519825
select *
into <other table name>
from <tablename>
where ...
to achieve this you have to make sure that th option 'select into/bulkinsert is enabled. Which you can do like this:
exec sp_dboption <databasename>, 'select into/bulkcopy', true