我刚刚安装了SQL Server 2008,但无法使用SQL Server Management Studio连接到它。我的意图是让本地Windows用户通过身份验证,但我不确定如何做到这一点。
在连接对话框中,我正在编写:
Server type: Database Engine
Server name: (local)
Authentication: Windows Authentication
我的第一个问题是,那应该连接到什么?当我尝试连接时,出现以下错误消息:
TITLE: Connect to Server
------------------------------
Cannot connect to (local).
------------------------------
ADDITIONAL INFORMATION:
A network-related or instance-specific error occurred while establishing a connection
to SQL Server. The server was not found or was not accessible. Verify that the instance
name is correct and that SQL Server is configured to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
(Microsoft SQL Server, Error: 2)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
我去那里显示的URL,它基本上只是说“确保SQL Server正在运行”。我认为是,但我不确定。
我已禁用Windows防火墙(这是Windows 7 7100 x86)。我还更改了SQL Server配置管理器中的登录系统,但似乎这不是登录问题,但甚至无法为其打开套接字。在同一工具上,我没有启用“ SQL Server网络配置”->“ SQLEXPRESS协议”上的所有协议。我没主意了。我还能尝试什么?