Additional information: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

StackOverflow https://stackoverflow.com/questions/23300955

Domanda

I am getting this error anytime I try to open my ODBC connection.

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. Can someone tell me what is wrong with that connection string?

Edit: Updated connection string that still isn't working.

È stato utile?

Soluzione

"IBM InfoSpere Class ODBC Driver V10.1" has to be the exact driver string you will find in the ODBC Administrator. Note if you are on a 64 bit windows machine there are 2 ODBC Administrators, one for 32 bit and for 64 bit. See 64-bit ODBC which explains where to find each one. You need to know whether your application is 32 or 64 bit and match that to the administrator.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top