MySQL Forums
Forum List  »  Connector/ODBC

Windows Service connecting to a MySQL database: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Posted by: Steven Shouler
Date: November 11, 2013 08:19AM

A system DSN has been created for accessing the MySQL database.

A windows app has been created that uses the DSN and it has been working for a couple of years now.

I am attempting to change the windows app to a windows service.

The service processes until it executes the following code:

cn.ConnectionString = "valid credentials"
Try
cn.Open()
Catch ex as Exception
Display ex.Message
End Try

Then the following error displays:

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


What have I forgotten to do?


Thanks in Advance!

Options: ReplyQuote


Subject
Written By
Posted
Windows Service connecting to a MySQL database: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
November 11, 2013 08:19AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.