带有MS SQL Server的ODBC数据源管理员

时间:2015-10-02 20:16:31

标签: sql-server odbc

我已经搜索了Stack Overflow和互联网,以寻找答案的步骤,但目前尚未成功。我的主要目标是在我的独立Win7 PC上使用带有MS SQL数据库的ASP脚本,但短期目标是能够配置在ODBC数据源管理器中成功测试的ODBC用户或文件DSN连接。

我安装了SQL Server 2012,可以从SQL Server Management Studio成功连接到数据库引擎。

当我尝试在ODBC中配置DSN条目时,错误消息显示为

  

[Microsoft] [SQL Server Native Client 11.0]命名管道提供程序:无法打开与SQL Server的连接[53]。

测试数据源的所有尝试都会导致TESTS失败时间超过15秒!消息。

我尝试了所有通常建议的调整。我可以提供哪些其他细节? HELP !!

1 个答案:

答案 0 :(得分:0)

默认情况下禁用命名管道。如果要通过命名管道进行连接,则需要从Sql Server配置管理器中启用它。

SQL Server 2017; SQLServerManager14.msc
SQL Server 2016; SQLServerManager13.msc
SQL Server 2014; SQLServerManager12.msc
SQL Server 2012 (11.x); SQLServerManager11.msc

您将需要使用START> RUN中的这些.msc文件之一来打开Sql Server配置管理器

我有SQL Server 2017,所以我将为您提供步骤。

1. Start
2. Run
3. Type in SQLServerManager14.msc and hit OK

The SQL Server Configuration Manager will open.

4. In the left pane of the Configuration Manager, look for "SQL Server Network Configuration" and expand it.
5. Find the "Protocols for {Your Server}" and double click it. There could be multiple options here if you have multiple SQL Server
Instances running on the server. Make sure you are updating the
Protocols for the correct instance(s).
6. Double click named pipes and change it from disabled to enabled
7. Restart your SQL Server services

You will now be able to connect over named pipes.