Solved

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

Posted on 2002-06-18
7
14,520 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple SQL query from two tables 13 54
date diff with Fiscal Calendar 4 32
syntax sql error 2 14
average of calculation (TSQL) 4 9
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

821 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