简体   繁体   English

MSDASQL.1 是否支持 TLS1.2

[英]Does MSDASQL.1 support TLS1.2

I have my access files(.mdb) which contain connection to SQL Server 2012 using MSDASQL.1 as provider.我有我的访问文件(.mdb),其中包含使用 MSDASQL.1 作为提供程序与 SQL Server 2012 的连接。 Through Citrix somehow, the connection gives SSL security Error, if we disable TLS1.0 as new version allowed is TLS1.2.如果我们禁用 TLS1.0,因为允许的新版本是 TLS1.2,则通过 Citrix 以某种方式连接会出现 SSL 安全错误。 People are saying MSDASQL.1 is so old that it doesn't support TLS 1.2.人们说 MSDASQL.1 太老了,不支持 TLS 1.2。 I did not get the information anywhere if MADASQL.1 supports TLS 1.2 or not.无论 MADASQL.1 是否支持 TLS 1.2,我都没有在任何地方获得信息。

My connection string is "Provider=MSDASQL.1;Persist Security Info=False;Data Source=" & DSNname我的连接字符串是“Provider=MSDASQL.1;Persist Security Info=False;Data Source=" & DSNname

However, it fails when we disable TLS1.0.但是,当我们禁用 TLS1.0 时它会失败。 I have tried changing MSDASQL.1 to MSOLEDB, however, it needs server name.我曾尝试将 MSDASQL.1 更改为 MSOLEDB,但是,它需要服务器名称。 What we have in input instead is DSN name and it is spread across multiple tools, so we cannot change this style of getting connection string using DSN.我们在输入中输入的是 DSN 名称,它分布在多个工具中,因此我们无法更改使用 DSN 获取连接字符串的这种风格。

"Provider=MSDASQL.1;Persist Security Info=False;Data Source=" & DSNname "Provider=MSDASQL.1;Persist Security Info=False;Data Source=" & DSNname

SQLNCLI11.0 got it working. SQLNCLI11.0 让它工作。

As an example, you can Create a DSN using below function例如,您可以使用以下函数创建 DSN

Declare 
Private Declare Function SQLConfigDataSource Lib "ODBCCP32.DLL" ( _
 ByVal hwndParent As Long, _
 ByVal fRequest As Long, _
 ByVal lpszDriver As String, _
 ByVal lpszAttributes As String) _
As Long

and put "SQL Server Native Client 11.0" as driver string;并将“SQL Server Native Client 11.0”作为驱动程序字符串;

Because, the New "TLS1.2" protocol requires you to have native client 11.0 to be installed on the machines and used aboveas the driver for ODBC and connection string.因为,新的“TLS1.2”协议要求您在机器上安装本机客户端 11.0,并在上面用作 ODBC 和连接字符串的驱动程序。

Also, please note, some old versions of even native client 11.0 wont work on TLS1.0.另外,请注意,即使是本机客户端 11.0 的一些旧版本也无法在 TLS1.0 上运行。 so, better to have the latest one ew one.所以,最好有最新的一个新的。

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

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