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)
 Inserts

Author  Topic 

sqlfresher2k7
Aged Yak Warrior

623 Posts

Posted - 2008-07-29 : 16:11:29
I want to insert the data in server1.db.tableA from a sqlserver table to local sqlserver table..

I need a query which should insert the data from sqlserver1 to sqlserver2..


Thanks for your help in advance !!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-29 : 16:40:27
You can do this with a linked server or OPENQUERY. Four-part naming convention: ServerName.DatabaseName.ObjectOwner.ObjectName

Otherwise, use DTS/SSIS/bcp.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-29 : 19:10:09
Use Export/Import wizard.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-07-30 : 00:49:28
or even OPENDATASOURCE
Go to Top of Page
   

- Advertisement -