dbTalk Databases Forums  

Linked servers

microsoft.public.sqlserver.clustering microsoft.public.sqlserver.clustering


Discuss Linked servers in the microsoft.public.sqlserver.clustering forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dotNet
 
Posts: n/a

Default Linked servers - 06-28-2004 , 01:44 PM






Hi!

I have a problem with linking two servers.

I have created a login called "linked" and set full permissions to the
pubs-database on booth servers.

When I first create the linked server and linked server login on server1
everything goes fine. And I can connect to server2:s pubs-database.
But when I do the same thing on server2 and want to connect server1 it gives
me this error:
Server: Msg 18452, Level 14, State 1, Line 1
Login failed for user 'linked'. Reason: Not associated with a trusted SQL
Server connection.

I have logged in with linked/password to QA and trying to execute:

select * from server1.pubs.dbo.authors

Booth servers have Authentication under the security tab set to "SQL Server
and Windows".

Any suggestions?



Reply With Quote
  #2  
Old   
Joe Belson
 
Posts: n/a

Default Linked servers - 06-29-2004 , 02:33 PM






Hi dotNet,

Try executing the following T-SQL:

sp_addlinkesrvlogin 'Server1', false,
NULL, 'srv1Login', 'Password'

Replace srvLogin and Password with the login and password
of the SQL Standard login & password you want to use on
the target server.

The SP will map ALL users that do not have an explicit
mapping to use the provided login/pwd when connecting to
the target server. You can use
sp_helplinkedsrvlogin 'Server1' to view all "Server1"
linked server logins.

Quote:
-----Original Message-----
Hi!

I have a problem with linking two servers.

I have created a login called "linked" and set full
permissions to the
pubs-database on booth servers.

When I first create the linked server and linked server
login on server1
everything goes fine. And I can connect to server2:s
pubs-database.
But when I do the same thing on server2 and want to
connect server1 it gives
me this error:
Server: Msg 18452, Level 14, State 1, Line 1
Login failed for user 'linked'. Reason: Not associated
with a trusted SQL
Server connection.

I have logged in with linked/password to QA and trying
to execute:

select * from server1.pubs.dbo.authors

Booth servers have Authentication under the security tab
set to "SQL Server
and Windows".

Any suggestions?


.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.