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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating duplicate table in SQL SERVER 2000 1

Status
Not open for further replies.

VeryGoodGirl

Programmer
May 9, 2007
7
US
In ORACLE we just:

Create table_name as (select * from another table)

How can I do something similar in SQL SERVER 2000.

Thank you
 
Code:
select * [!]Into NewTableName[/!] from anothertable

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
I should point out that this will create a new table with all the data from the original table. It will not copy contstraints or indexes.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top