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

The options of transfer database between two database 1

Status
Not open for further replies.

wg26

Programmer
Mar 21, 2002
135
0
0
US
Hi Everyone:

I have two exact the same databases in the same server with different names, Now I want to transfer one table's data from one database to the other. I know I can use dts to do the data transfer. But I want to know what other options I have to transfer these data? Can it be done by using T_SQL?
This table has no any relationship with other tables in the database. Can anyone please give me some suggestions? Thanks alot
 
sp_configure 'allow updates',1
RECONFIGURE WITH OVERRIDE

sp_dboption 'select into/bulkcopy','true'

select * into DB2..table1 from DB1..Table1

sp_dboption 'select into/bulkcopy','false'

sp_configure 'allow updates',0
RECONFIGURE WITH OVERRIDE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top