[dba-SQLServer]Update table in other db

Djabarov, Robert Robert.Djabarov at usaa.com
Tue Apr 1 13:07:24 CST 2003


You can also use OPENROWSET
 
Robert Djabarov
Senior SQL Server DBA
USAA IT/DBMS
* (210) 913-3148 - phone
* (210) 753-3148 - pager
 
-----Original Message-----
From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com]
Sent: Tuesday, April 01, 2003 11:36 AM
To: SQLServerList
Subject: [dba-SQLServer]Update table in other db
 
I am trying to create a sproc that appends records from TableA to TableB.
TableA is located on ServerA, and TableB is located on ServerB.
How do I specify the location of ServerB in the following statement?
"INSERT INTO TableB SELECT * FROM TableA"
 
TIA,
Mark Boyd
Sr. Systems Analyst
McBee Associates, Inc.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://databaseadvisors.com/pipermail/dba-sqlserver/attachments/20030401/d485251f/attachment-0001.html>
-------------- next part --------------
_______________________________________________
dba-SQLServer mailing list
dba-SQLServer at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
http://www.databaseadvisors.com



More information about the dba-SQLServer mailing list