RE: Windows Authtication problem?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Yuan Shao (v-yshao_at_online.microsoft.com)
Date: 04/05/04


Date: Mon, 05 Apr 2004 02:58:32 GMT

Hello,

How is the issue going on your side? I learned you are able to add in
"LocalMachineName\test" login using SEM without any problem, but failed to
login SQL using Query Analyzer. Please make sure you double-checked the
name of the Server you connect to.

Can you connect to SQL Server using "LocalMachineName\test" account via
SEM? If so, how did you connect to? Is there any difference of connecting
configuration between Query Analyzer and SEM?

In addition, please perform the following steps in QA to allow the Windows
NT user LocalMachineName\test to connect to SQL Server.
EXEC sp_grantlogin ' LocalMachineName\test'

Once it is granted successfully, please try connecting using Windows
authentication via QA and see if that helps.

I am looking forward to hearing from you soon.
Regards,

Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.



Relevant Pages

  • Re: login 101..
    ... On Windows 2003, SQL Server 2005 can enforce the Windows password complexity ... Windows authentication - SQL Server uses a special protocol to ask ... user is in the list of allowed logins, ...
    (microsoft.public.sqlserver.security)
  • RE: How to create a trusted connection
    ... You need to grant access for the Windows login by referring to the books ... is set to use Windows authentication to be able to do trusted connection. ... There are two modes of authentication in SQL Server: ...
    (microsoft.public.sqlserver.security)
  • Re: Windows NT user or group not found.
    ... out what SQL Server thinks the login name is vs. what Windows thinks the ... When the SQL Server collation and the Windows collation are different, ... The following example uses the Param2 parameter to get the SID from Windows ...
    (microsoft.public.sqlserver.connect)
  • RE: How to create a trusted connection
    ... What do you mean by "creating a Windows login"? ... To login SQL Server 2000 using trusted connection, grant the Windows ... Group" in SQL Server Books Online to get the concept, ...
    (microsoft.public.sqlserver.security)
  • Re: Connecting to SQL from a Windows Service
    ... There is probably some way to debug this, but that's deeper Windows knowledge than I can dredge up right now. ... I looked into the Event Log and found that when my service ... 1st Login succeeds. ... You can try turning on login auditing in SQL Server and then check the ...
    (microsoft.public.sqlserver.connect)