简体   繁体   English

无法连接到本地 SQL Server 2008

[英]Not able to connect to local SQL Server 2008

I have just recently downloaded and installed SQL Server 2008 on my laptop.我最近刚刚在我的笔记本电脑上下载并安装了 SQL Server 2008。 I want to login using my local details.我想使用我的本地详细信息登录。

I tried like this in my image below我在下面的图片中尝试过这样

图片 1

but I get this error:但我收到此错误:

图片 2

Kindly let me know how to connect it as I am new for doing first time installation.请让我知道如何连接它,因为我是第一次安装的新手。

There are many reasons..few listed below有很多原因......下面列出的很少

  1. Instance name may be incorrect..So try searching for all the available instances ..when you are connecting from local ,you can check that easily by try clicking on server name drop down and browse for more and clicking database engines实例名称可能不正确..所以尝试搜索所有可用的实例..当您从本地连接时,您可以通过尝试单击服务器名称下拉列表并浏览更多并单击数据库引擎来轻松检查

  2. Once instance name is correct, you can try checking if SQL Server services are running by opening configuration manager一旦实例名称正确,您可以尝试通过打开配置管理器来检查 SQL Server 服务是否正在运行

  3. If SQL Server is running , you may want to check if network protocols are enabled in same configuration manager如果 SQL Server 正在运行,您可能需要检查是否在同一配置管理器中启用了网络协议。

  4. One more reason could be SQL Server browser service not running..this helps you to connect to right instance when you have multiple instances running on same box and you don't specify port number while connecting另一个原因可能是 SQL Server 浏览器服务未运行..当您在同一台机器上运行多个实例并且在连接时未指定端口号时,这可以帮助您连接到正确的实例

Do the following to troubleshoot:执行以下操作来排除故障:

  1. Go into sql server connection manager and check if sql server services is running.进入 sql server 连接管理器并检查 sql server 服务是否正在运行。 If it is not running then start it.如果它没有运行,则启动它。
  2. If it is running, right click it and open it.如果它正在运行,请右键单击它并打开它。
  3. Copy name of instance from and paste that name in management studio connection window.从中复制实例名称并将该名称粘贴到管理工作室连接窗口中。
  4. If you still get error try connecting it with '.'如果您仍然遇到错误,请尝试将其与 '.' 连接。 In server name in ssms connection window.在 ssms 连接窗口中的服务器名称中。
  5. If its still not working, go in sql server connection manager and check protocols.如果它仍然无法正常工作,请进入 sql server 连接管理器并检查协议。 Check if named pipe protocol is enabled.检查命名管道协议是否启用。 If not enabled, enable named pipe protocol.如果未启用,则启用命名管道协议。

If you follow above steps you should fix the error you are getting.如果您按照上述步骤操作,您应该修复您遇到的错误。

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

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