Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy table 1

Status
Not open for further replies.

ksbigfoot

Programmer
Apr 15, 2002
856
CA
I am using SQL Server 2000.
I have 2 tables (Table1, Table2), that I want to copy and rename as (Table1Work, Table2Work).
Can someone point me in the right direction is how I should copy the tables with the same data.

Thanks
 
select *
into Table1Work
from Table1;

Drop table Table1;

Similary for Table2.

HTH
 
Howdy manmaria,
Cool, star to you. It worked Perfectly.
ksbigfoot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top