Microsoft Knowledge Base Email Alertz

(831133) - You receive the following error message: Login failed for user ' ServerName \guest' You receive this error message if either of the following conditions is true: You try to register a server in SQL Server Enterprise Manager. You try to connect to...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 831133 - Last Review: May 27, 2004 - Revision: 1.4

SQL Server clients are authenticated as guests if Simple File Sharing is enabled

System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you. Visit the Windows Vista Solution Center

SYMPTOMS

You receive the following error message:
Login failed for user ‘ServerName\guest'
You receive this error message if either of the following conditions is true:
  • You try to register a server in SQL Server Enterprise Manager.
  • You try to connect to Microsoft SQL Server 2000 by using SQL Query Analyzer from a computer that is running Microsoft Windows XP and that computer is in a workgroup.
This problem occurs even if the local user account and password match the account on the remote server.

CAUSE

This problem occurs because Simple File Sharing affects how remote users are authenticated. All remote users are authenticated as guests to SQL Server 2000 in this environment. Simple File Sharing is always enabled on computers that are running Microsoft Windows XP Home Edition. By default, Simple File Sharing is enabled on computers that are running Microsoft Windows XP Professional and that are joined to a workgroup.

MORE INFORMATION

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
304040  (http://kbalertz.com/Feedback.aspx?kbNumber=304040/ ) How to configure file sharing in Windows XP
302927  (http://kbalertz.com/Feedback.aspx?kbNumber=302927/ ) Computer Management displays user account names when logged on as Guest

APPLIES TO
  • Microsoft SQL Server 2000 Standard Edition
  • Microsoft SQL Server 7.0 Standard Edition
  • Microsoft Windows XP Home Edition
Keywords: 
kberrmsg kbprb KB831133
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Dennis Breen - dbreen NOSPAM-AT-NOSPAM infinitidesigns.com Report As Irrelevant  
Written: 10/21/2005 8:57 AM
This article was very helpfull Finally solved my problem the right way my other solution was to add guest account to SQL Server. I did not want to do that, but I could not understand why it was trying to authenticate with guest account. THanks

manoj - manojbandgar NOSPAM-AT-NOSPAM rediffmail.com Report As Irrelevant  
Written: 10/3/2006 1:27 AM
Login failed for user 'ServerName\Guest'. (.Net SqlClient Data Provider).