尝试从udl测试文件连接到SQL Server 2016时出现SSL安全性错误

问题描述 投票:0回答:1

我正在尝试测试从本地PC(Win 7)到SQL Server 2016计算机(Win 2016 Standard X64)的SQL连接。我刚刚创建了一个虚拟.udl文件,提供了服务器名称,SQL凭据但是我收到以下错误:

[DBNETLIB][ConnectionOpen (SecDoClientHandshake().]SSL Security error.

如果我通过SQL Management Studio连接是有效的。

如果我尝试使用ODBC工具来测试数据源,我在测试连接窗口中收到以下错误消息

Microsoft SQL Server Native Client Version 11.00.2100

Running connectivity tests...

Attempting connection
[Microsoft][SQL Server Native Client 11.0]Encryption not supported on the client.
[Microsoft][SQL Server Native Client 11.0]SSL Provider: The client and server cannot communicate, because they do not possess a common algorithm.

[Microsoft][SQL Server Native Client 11.0]Client unable to establish connection
[Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.

TESTS FAILED!

更新:对于.udl虚拟测试,我设法通过在SQL Server系统上启用TLS 1.0来实现它(注册表路径:HKLM SYSTEM \ CurrentControlSet \ Control \ SecurityProviders \ SCHANNEL \ Protocols)

sql-server sqlconnection
1个回答
0
投票

我已在应用程序服务器上启用了TLS 1.0(注册表路径:HKLM SYSTEM \ CurrentControlSet \ Control \ SecurityProviders \ SCHANNEL \ Protocols),因此现在ODBD数据源测试按预期工作。

© www.soinside.com 2019 - 2024. All rights reserved.