Receive "Login Failed for User 'NT AUTHORITY\ANONYMOUS LOGON'." error when you try to link a table in ADP (295255)



The information in this article applies to:

  • Microsoft Office Access 2003
  • Microsoft Access 2002, when used with:
    • the operating system: Microsoft Windows 2000

This article was previously published under Q295255
Advanced: Requires expert coding, interoperability, and multiuser skills.

This article applies only to a Microsoft Access project (.adp).

SYMPTOMS

When you try to link a table in a Microsoft Access project (.adp), you may receive the following error message:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

CAUSE

You are not using a Windows 2000-based computer with Security Account Delegation enabled; therefore, Windows 2000 Security is not supported between servers. Without Security Account Delegation enabled, SQL Server tries to log on to the Linked Server anonymously.

RESOLUTION

To avoid this behavior, use one of the following workarounds:
  • Specify a SQL Server logon and password that is valid on the linked server.
  • Enable Security Account Delegation between the SQL Servers. To support this option, both SQL Servers must be running on Windows 2000.

    For more information, see the "Security Account Delegation" topic in SQL Server 2000 Books Online, which is available for download at the following Microsoft Web site:

MORE INFORMATION

Steps to Reproduce the Behavior

  1. On a Windows 2000-based computer that does not have Security Account Delegation enabled, create a new Access project, and then connect to SQL Server data using Windows NT Integrated Security.
  2. On the File menu, point to Get External Data, and then click Linked Tables.
  3. In the Link Table Wizard dialog box, click Linked Server, and then click Next.
  4. In the Select Data Source dialog box, click New Source.
  5. In the Data Connection Wizard dialog box, click Microsoft SQL Server, and then click Next.
  6. In the Server Name box, enter a different server name from the one that you connected to in step 1.
  7. Click Use Windows 2000 Security, and then click Next.
  8. Select a database to connect to, click Next, and then click Finish.
  9. Select your new Office Database Connection (.ODC) file in the Select Data Source dialog box, and then click Open.
  10. Select one of the tables, and move it to the Link to Project box. Click Next.
  11. Click Finish.

    Note that you receive the error message that is mentioned in the "Symptoms" section of this article.

Modification Type:MinorLast Reviewed:5/28/2004
Keywords:kbADP KbClientServer kberrmsg kbprb KB295255 kbAudDeveloper