[英]Additional information: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I am getting this error anytime I try to open my ODBC connection. 每当我尝试打开ODBC连接时都会出现此错误。
This is my connection string: 这是我的连接字符串:
<add name="ODBCConnection"
connectionString="Driver={IBM InfoSphere Classic ODBC Driver V10.1};Server=xxx.xxxxxx.COM,6666;Database=DTM;"
providerName="System.Data.Odbc"/>
I am not using a DSN as I didn't think it was necessary and that the connection string could handle all that. 我没有使用DSN,因为我认为这不是必需的,并且连接字符串可以处理所有这一切。 Can someone tell me what is wrong with that connection string?
有人可以告诉我该连接字符串出了什么问题吗?
Edit: Updated connection string that still isn't working. 编辑:更新的连接字符串仍然无法正常工作。
"IBM InfoSpere Class ODBC Driver V10.1" has to be the exact driver string you will find in the ODBC Administrator. “ IBM InfoSpere类ODBC驱动程序V10.1”必须是在ODBC管理器中可以找到的确切驱动程序字符串。 Note if you are on a 64 bit windows machine there are 2 ODBC Administrators, one for 32 bit and for 64 bit.
请注意,如果您使用的是64位Windows计算机,则有2位ODBC管理员,一个是32位和64位。 See 64-bit ODBC which explains where to find each one.
请参阅64位ODBC ,它说明了在哪里可以找到每个ODBC 。 You need to know whether your application is 32 or 64 bit and match that to the administrator.
您需要知道您的应用程序是32位还是64位,并将其与管理员匹配。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.