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

stored procedure accessing another sql server

Status
Not open for further replies.

brench1

Programmer
Nov 9, 2003
9
0
0
US
I have a stored procedure on SQL Server Standard Edition trying to access a table on a second SQL Server (which is Personal Edition). I use the fully qualified path (server.database.dbo.object_name) but am getting error 18452 (login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection).

I have authentication set to 'SQL Server and Windows' on the Security tab under Properties for both servers.

Anyone have any suggestions?

TIA.


Brad
 
I believe that you have to set up the two db's to be linked so that they are able to communicated to one another.

dlc
 
how do I set up the two db's to be linked?
 
under SQL Server EM there is a security folder that you can select Linked Servers. There is where you choose the server to link to and assign it a name.

dlc
 
Oh, I misunderstood. I had already linked the two servers. I thought you meant there was something more I needed to do to link the databases themselves.

By the way, I can connect from the Personal Edition server to the Standard Edition server, but I get the error when going the other way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top