NetWorker:无法备份具有非默认 TCP 端口的 SQL server 2022

Summary: 在 SQL 2022 中指定非默认 TCP 端口时,SQL 备份作业失败。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

在 SQL Server 配置管理器中,-> SQL Server 网络配置 -> MSSQLSERVER 协议-> TCP/IP

客户修改了 TCP 动态端口以使用 6201 而不是默认端口 1433。SQL 备份作业失败,并显示以下错误消息。
 
153887:nsrsqlsv: Microsoft SQL server documentation provides details about the following SQL Server Provider error:
67945 nsrsqlsv NSR critical Cannot login to SQL Server Default Instance.
38008:nsrsqlsv: Named Pipes Provider: Could not open a connection to SQL Server [2].
153416:nsrsqlsv: (Error: 2)

Cause

在 SQL 以前的版本中,可以通过修改 SQL 本机客户端配置来指定 none 默认端口来解决此问题。但自 SQL 2022 起,SQL 本机客户端不再是 SQL Server 安装的一部分,因此客户端拒绝单独安装此功能。

Resolution

如果使用非默认 TCP 端口,请在 SQL Server 网络配置下启用“Named Pipes”协议。


Article Properties
Article Number: 000226446
Article Type: Solution
Last Modified: 19 Aug 2024
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.