I am assuming there is some functionality to copy and paste a table in sql server..however I am not seeing where I can do this what I want to do is this:
create table1 as select * from table 2;
Please let me know how I can create a new table as a replica of an existing table. Thanks so much!Sounds like Oracle syntax there. There is an analog in SQL Server, though
Select * into copytable
from sourcetable
This won't bring over indexes, primary keys, foreign keys, or identity columns, but it does bring the bare table structure, and the data.|||thanks. Yep I am having a big of a syntax issue here. I am more of an Oracle person! Thanks again.
No comments:
Post a Comment