I'm using CVI 2013 and the SQL toolkit (2.2) tto connect to a mySQL database. I can connect fine using my development computer, but not with the target one. Both computers are running 64-bit Windows 7 Professional (SP1). I was initially using the 64-bit ODBC drivers (mysql-connector-odbc-5.3.2-win64.msi) on both machines. After I had trouble I found a Knowledge Base article that indicated I should probably be using the 32-bit one instead. So I removed the drivers from the target and installed the 32-bit ones using odbcad32.exe found in Windows/SysWOW64. No change.
I'm using the browser2.prj sample project included with the SQL toolkit (by default at: C:\Users\Public\Documents\National Instruments\CVI\samples\sql\apps) to test the functionality of the SQL toolkit. I build a distribution kit including the Shared Run-Time Engine on the development machine and install that on the target. I have traced the problem to the call for DBSources() - it returns a -100 (which, handily, is not amoung the list of database error codes).
On both machines the ODBC drivers appear to be working. I can get to the database using Control Panel->Administrative Tools->Data Sources (ODBC). Selecting the database under either User DSN or System DSN and then clicking Configure will open the MySQL Connector/ODBC Data Source Connection window. Clicking Test in that window will connect to the database.
So the problem seems to lie in the way that CVI connects to the database. I'm clueless at this time, so any suggestions would be greatly appreciated.
↧
SQL toolkit Win7 connection problem
↧