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

SQL Server link to access/excel

Status
Not open for further replies.

henslecd

MIS
Apr 21, 2003
259
US
My company has two servers, "A" and "B". "A" has SQL Server on it with data, "B" has more data.

I am wondering if I can link SQL Server to "B" and get the data from there. I cannot import this data to "A". It must stay on the "B". The data on "B" could be an excel spreadsheet, an Access table, etc etc. Is there a way to link the data on "B" to SQL Server on "A"?

Thanks for the help.
 
you can query data on a remote server. first you need to add the server as a linked server (like linking tables in access)

look up sp_addlinkedserver in BOL

you can then query the data from server A by fully qualifying the name of server b eg
select * from serverb.databasename.dbowner.tablename

Matt

Brighton, UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top