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
 Transact-SQL (2000)
 insert data

Author  Topic 

u2p_inst
Yak Posting Veteran

78 Posts

Posted - 2003-03-20 : 07:15:59
dear all,

how can i insert all data in a table to the other table using the query not DTS?

oh

AndyB13
Aged Yak Warrior

583 Posts

Posted - 2003-03-20 : 07:48:16
INSERT Table1(Column1, Column2, Column3)
SELECT Column1, Column2, Column3
FROM Table2

HTH
Go to Top of Page

samsekar
Constraint Violating Yak Guru

437 Posts

Posted - 2003-03-21 : 05:03:29
You can also use INTO Clause if the new table is not exists.

select * into newTableName from tableName

Sekar
~~~~
Success is not a destination that you ever reach. Success is the quality of your journey.
Go to Top of Page
   

- Advertisement -