Solved

Not associated with a trusted SQL Server connection (Linked Server)

Posted on 2002-06-18
7
14,523 Views
Last Modified: 2012-06-27
I have SQL 7 And SQL 2000.
I would like to setup a trigger in SQL7 that updates a table in SQL2000.
So i created a linked Server in SQL7 pointing to SQL2000.

When i was logged into the SQL server it worked perfectly.

However I logged off and now using the Enterprise manager of another machine to do the work.
When i atempt the connection i get:
Not associated with a trusted SQL Server connection.

I created an Admin user for the Linked Server on SQL2000.

Still no lock.

Please H.E.L.P!!
0
Comment
Question by:talal
  • 5
  • 2
7 Comments
 
LVL 5

Expert Comment

by:spcmnspff
ID: 7092555
Check the security context for the linked server.  Be sure that the use logged in either has an alias on the 2000 machine or you have "Users no listed use the folowing context" checked with the admin acount logon and password entered.

Let Me know . . . =)
0
 

Author Comment

by:talal
ID: 7093194
The user belongs is a domain user and belongs to Admin group of the 2000 machine.
"Users no listed use the folowing context" is set to a domain admin user.

:(

Did not work
0
 
LVL 5

Accepted Solution

by:
spcmnspff earned 200 total points
ID: 7093410
Okay, un the security context on the 7.0 machine, enter in Domain\Username and check impersonate.  This forces the linked server to use the same login on the other side . . .  

Let me know . . .
0
Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

 

Author Comment

by:talal
ID: 7093848
sorry, that did not help either.
this is very frustrating!
0
 

Author Comment

by:talal
ID: 7106619
OK, I have not found a solution for this. And as i need to get fast on this here is a detailed description of what we have:
1. I have 2 SQL Servers one is 2000 and one is 7.
2. I am trying to link to them so i can execute a command from the 7 Server (NT4) to the SQL 2000 (Win 2000) Server (in triggers for example).
3. The Servers are in Novell Network. With a Domain controlers.

Here is What i am getting:
a. When i am logged in the server station and the Linked Server SECURITY set to "Use the Logged in security context". It works. However When I log off the station and use the Enterprise Manager of another server it gives me "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'"!.

so,
b. I set the Linked Server security to use MY user Name and password (I am the Admin) but now i got:
"Login failed for user 'NTServer\MyAdmin'. Reason: Not associated with a trusted SQL Server connection."

What am i doing wrong?????????????????????????
0
 

Author Comment

by:talal
ID: 7139080
Sorry, I am deleting this because non of the answers given was correct.
I had to Call Microsoft. And as it turns you can not use NT security for linked servers with SQL 7.

0
 

Author Comment

by:talal
ID: 7472566
Cleaning up....
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
push and Pull replication 31 46
Many to one in one row 2 35
Want an individual results display div 8 40
T-SQL: Stored Procedure Syntax 3 29
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question