Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 copy table structure including index

Author  Topic 

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2006-02-18 : 09:04:09
How to use code to copy tblA to tblB, including all columns and index without data?

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-02-18 : 09:32:33
use Enterprise Manager to Generate SQL script for tblA, change the name to tblB and run the script in Query Analyser

----------------------------------
'KH'

Time is always against us
Go to Top of Page

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2006-02-18 : 09:41:08
Thank you. It works fine but need set up option for index file.
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-02-18 : 09:48:22
Yes. check what you need in the option tab page.

----------------------------------
'KH'

Time is always against us
Go to Top of Page
   

- Advertisement -