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 linked in EM but not in Access

Status
Not open for further replies.

LeonAtRC

Programmer
Nov 25, 2002
101
US
Using SQL Server 2000 and MS Access 2003 SP2:
The main SQL server and the remote sql server are both on the same local area network.
Using EM I've linked the main to the remote, (and also linked the remote to the main.)
EM tells me they are linked...both ways.
Query Analyser will run a query from the main using a table on the remote using a 4 part identifier:
"SELECT ID FROM Remote.DB.dbo.Table"
When I put that same query into a module or stored procedure I get an error tellin me it can't find the remote server and I should use sp_addlinkedserver to install the server name in sysservers. I checked and the remote name is already in sysservers.

Any help would be greatly appreciated.
Thanks. Leon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top