Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Accessing tables in remote database server from local server. Expand / Collapse
Author
Message
Posted Friday, September 5, 2008 4:46 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Yesterday @ 10:34 PM
Points: 1,504, Visits: 2,528
Dear All,

I have a procedure which pulls data from one database and insert into another. Sofar both the databases were in same server. Now one of the database will be shifted a remote server. Wot are the changes I will have to make in the procedure..? How will I insert into the tables in remote database..?

Please help.....



Thanks in advance...



Santhosh Nair.
Post #564447
Posted Friday, September 5, 2008 6:04 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Sunday, April 13, 2014 11:32 AM
Points: 939, Visits: 778
You will need to add a "Linked Server" on the server the queries are running on.

This will allow you to execute queries as normal (with the addition of the server in the object qualifier) ie:

insert into local_table
select * from remote_server.dbo.remote_database.table

Check out Books On Line for sp_addlinkedserver

Matt
Post #564488
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse