简体   繁体   English

无法连接到SQL Server 2008的本地实例

[英]Cannot connect to local instance of SQL Server 2008

I'm attempting to connect to an instance of SQL Server 2008 (Developer Edition) in SQL Server Management Studio but am receiving the following error: 我正在尝试连接到SQL Server Management Studio中的SQL Server 2008(开发人员版)的实例,但收到以下错误:

登录窗口

SQL Server Management Studio错误消息

In SQL Server Configuraton Manager, all services are running and logged in as LocalSystem. 在SQL Server Configuraton Manager中,所有服务都正在运行并以LocalSystem身份登录。

SQL Server服务

I have set the SQL Native client 10.0 configutarion to enable Shared Memory, TCP/IP, and Named Pipes. 我已经设置了SQL Native Client 10.0配置来启用共享内存,TCP / IP和命名管道。 I have also set SQL Serer Network Configuration to enable Shared Memory. 我还设置了SQL Serer网络配置来启用共享内存。

SQL Native Client 10.0配置(32位)SQL Natiev客户端10.0配置SQL Server网络配置

The default (unnamed) instance uses MSSQLSERVER as its service name - so it seems your instance is actually called MSSQLSERVER08 . 默认(未命名)实例使用MSSQLSERVER作为其服务名称-因此看来您的实例实际上称为MSSQLSERVER08

Therefore, you need to use 因此,您需要使用

.\MSSQLSERVER08

or 要么

(local)\MSSQLSERVER08

as your server name for connecting... 作为用于连接的服务器名称...

Note: 注意:

all these things refer to the local machine in the context of connecting to a SQL Server installed on that machine: 所有这些都是在连接到安装在该计算机上的SQL Server的上下文中的本地计算机:

  • .
  • (local)
  • localhost
  • or your actual machine name (whatever it might be) 或您的实际机器名称 (无论可能是什么)

For SQL Express use .\\MSSQLSERVER08 as your server name. 对于SQL Express,请使用.\\MSSQLSERVER08作为您的服务器名称。 Try to enable TCP/IP, Shared Memory and Named Pipes from all programs 尝试从所有程序中启用TCP / IP,共享内存和命名管道

Also check if the service is started: 还要检查服务是否已启动:

在此处输入图片说明

Restart the SQL Server services. 重新启动SQL Server服务。 Then try to connect. 然后尝试连接。

OR 要么

If you have Installed SQL server with named instance, browse for for the server name. 如果已使用命名实例安装SQL Server,请浏览以查找服务器名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM