简体   繁体   English

32 位 ODBC 驱动程序连接问题

[英]32 Bit ODBC Driver Connection Issue

Thanks for your time.谢谢你的时间。 I am new to SQL Server.我是 SQL Server 的新手。 I am using 32 bit odbc driver 17 and SQL server version is 2008. Using the same credentials, I am able to connect through SSMS but not through ODBC driver connection settings.我使用的是 32 位 odbc 驱动程序 17,SQL 服务器版本是 2008。使用相同的凭据,我可以通过 SSMS 进行连接,但不能通过 ODBC 驱动程序连接设置进行连接。 I am not sure whats wrong on this one.我不确定这个有什么问题。 Your help is highly appreciated.非常感谢您的帮助。

Microsoft ODBC Driver for SQL Server Version 17.04.0001适用于 SQL Server 版本 17.04.0001 的 Microsoft ODBC 驱动程序

Running connectivity tests...正在运行连接测试...

Attempting connection尝试连接

[Microsoft][ODBC Driver 17 for SQL Server]SSL Provider: The target principal name is incorrect. [Microsoft][ODBC Driver 17 for SQL Server]SSL 提供程序:目标主体名称不正确。
[Microsoft][ODBC Driver 17 for SQL Server]Client unable to establish connection TESTS FAILED! [Microsoft][ODBC Driver 17 for SQL Server]客户端无法建立连接测试失败!

Strange since you are able to connect through SSMS.奇怪,因为您可以通过 SSMS 进行连接。

But try to add the server name like this (with default port number): "ServerName,1433" (of course if the port for connection to the server is the default one)但是尝试添加这样的服务器名称(使用默认端口号):“ServerName,1433”(当然如果连接到服务器的端口是默认端口)

I have seen this few times in the past where you are able to connect to the instance through SSMS without adding port number, and not able to connect with ODBC if the port number is not explicitly given.过去我曾多次看到这种情况,您可以在不添加端口号的情况下通过 SSMS 连接到实例,并且如果未明确给出端口号,则无法与 ODBC 连接。

Also it is very good idea to double check again all the connection details given such as - Username, Password, Default database to connect to.此外,再次仔细检查所有提供的连接详细信息也是一个很好的主意,例如 - 用户名、密码、要连接的默认数据库。

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

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