Solved

Linked Server Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

Posted on 2004-09-08
2
730 Views
Last Modified: 2007-12-19
I set up a linked server to a server named "DB6" on a domain I will call "DOMAIN2". I created the linked server and have tried every permutation of security context I can think of but keep getting "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'" when I try to view the tables.

I was able to link back to my source server which I will call "DB1" (which is in a different domain).

My latest try:  set password on sa, used sa and password to connect to linked server.

Authentication on both machines is Windows And SQL Server.

I suspect domain-related issues are behind this but I am not sure what to ask my System Admin. I asked him to allow anonymous logins but he said he will not do that.

Thanks
0
Comment
Question by:AaronAbend
2 Comments
 
LVL 5

Accepted Solution

by:
perezjos earned 500 total points
ID: 12039389
Hello,


1) Define a trust relationship whereby the domain containing the SQL Server "trusts" the domain which contains the users (and vica-versa "is trusted by"...) This will allow you to "see" the accounts in Domain A in your User Manager.

2) Create a local group on the SQL Server in question. This will be the receptacle of the trusted domain accounts you need to provide access for.

3) Using SQL Server Security Manager, give the newly-created local group rights to the database(s) you wish them to access. Be sure to automatically create SQl Logins for them using the check box!!!

4) In SQL Enterprise Manager, set the permissions on the object(s) so that the user(s) in question can Select, Update, etc... as necessary.

Jose

5) These users will now be able to use SQL Server tables through any means (ODBC, DB-LIB, etc...)
0
 
LVL 10

Author Comment

by:AaronAbend
ID: 12040397
I am not sure if this will work, but it is the only response I have received and it is quite detailed. Thanks. I will try this and see if it works. In the meantime, I worked around the problem.  

0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

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…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

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