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
 General SQL Server Forums
 New to SQL Server Programming
 Creating a table from existing table

Author  Topic 

aswamr
Starting Member

1 Post

Posted - 2009-02-18 : 01:41:15
How can I create a table from an existing one along with its data.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-02-18 : 01:50:31
[code]SELECT reqd columns... INTO NewTable FROM YourCurrentTable[/code]
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-02-18 : 03:48:40
You will not transfer your indexes, only defaults and for clarification, identity settings.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -