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 data into another table[urgent!! pls]

Author  Topic 

ramana123
Yak Posting Veteran

57 Posts

Posted - 2005-07-20 : 05:44:31
hi all;;;;


pls anybody tell me the query in sqlserver to copy the table into some new table...in a single shot..

i know that in oracle using tyhe query::::

create table table2 as select * from table1.
here the table 2 is new table created with the data after execution of this query !!!!!
like that i wanyt query in sqlserver

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-07-20 : 06:20:11
select *
into NewTable
from OldTable

this will not copy constraints...

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -