gpt4 book ai didi

sql-server - 使用 MS SQL Server 的 ODBC 数据源管理器

转载 作者:行者123 更新时间:2023-12-04 01:08:10 26 4
gpt4 key购买 nike

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

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

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

[Microsoft][SQL Server Native Client 11.0]Named Pipes Provider: Could not open a connection to SQL Server [53].

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

我已经尝试了所有通常推荐的调整。我还可以提供哪些其他详细信息?帮助!!

最佳答案

命名管道默认是禁用的。如果要通过命名管道连接,则需要从 Sql Server 配置管理器启用它。

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

您需要使用“开始”>“运行”中的这些 .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.

关于sql-server - 使用 MS SQL Server 的 ODBC 数据源管理器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32915210/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com