无法使用 SSMS 通过 Windows 身份验证连接到本地 SQL Server

无法使用 SSMS 通过 Windows 身份验证连接到本地 SQL Server

问题描述:

我正在尝试使用 Windows 身份验证使用 SSMS 登录到安装在 Windows7 上的本地 SQL Server 2005.

I am trying to login to my local SQL Server 2005 installed on Windows7 using SSMS using Windows authentication.

我尝试使用各种服务器名称,例如 .localhost.\SQLAANTH-PC 等.

I tried using various server names like ., localhost, .\SQL, ANANTH-PC etc.

当我尝试 .localhost

当我尝试 .\SQL

.

我在安装 SQL Server 时使用了默认实例和 Windows 身份验证.

I had gone for default instance and Windows authentication when I installed SQL Server.

我检查了 SQL Server 配置管理器中的服务,发现 MSSQLSERVER 正在运行.

I've checked the service in the SQL Server Configuration manager and find that MSSQLSERVER is running.

如何找到登录 SQL Server 时应输入的服务器名称?有什么帮助吗?

How can I find the server name that I should enter to login to SQL Server? Any help ?

错误记录为

2012-01-26 15:07:16.02 Logon       Login failed for user 'Ananth-PC\Ananth'. [CLIENT: <local machine>]
2012-01-26 15:08:51.06 Logon       Error: 18456, Severity: 14, State: 11.

这应该可以帮助您找到原因.点击:显示技术细节"并查看状态编号.

That should help you find reason. Click: "Show technical details" and look at State number.

http://blogs.msdn.com/b/sql_protocols/archive/2006/02/21/536201.aspx