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)
 table transfer

Author  Topic 

sqlserver5
Starting Member

19 Posts

Posted - 2008-01-11 : 01:57:33
how to transfer a table from one database to another database
because i create a table in another database


visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-01-11 : 02:51:31
DO you want only to transfer the data or create table as well?

If both dbs are on same server and you want to transfer data alone use,

USE DB2
INSERT INTO Table
SELECT * from DB1.<schema>.Table


If you want to create table as well, use

USE DB2
SELECT * INTO Table
FROM DB1.<schema>.Table
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-01-12 : 12:36:36
Or dts package.
Go to Top of Page
   

- Advertisement -