Solved

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

Posted on 2002-06-18
7
14,510 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

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

Author Comment

by:talal
Comment Utility
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
Comment Utility
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
Comment Utility
Cleaning up....
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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 INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now