Hi all,
I wrote a VI that performs a database search and returns the results, and then I built this VI into an executable. On almost every machine in our office, it seems to work just fine as this executable. The catch is that all the systems I've tried it on are running XP and have LabVIEW 7.x installed.
The problem is that I've tried installing and running it on a Win2k server without LabVIEW (just runtime via the installer), and I get an ODBC Driver Manager error via my LabVIEW error handler. This is evidently a common message: "Data source name not found and no default driver specified." Of note, the server is up to date on the JET driver service packs, etc.
I'm using the DB Connectivity Toolkit, and I'm generating the following UDL string:
Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=
;
Persist Security Info=False
Of course, the real path is very long, so I didn't type it here, and I know it's correct and can be accessed.
I'm then feeding that UDL string into "DB Tools Open Connection.vi" from the DB connectivity toolkit library. On all the machines that my build works on, I have no DSN configured under ODBC. The toolkit is somehow generating a DSN on the fly, but I have no idea how it works, or how to fix it, because the code is locked down. I'm wondering the the DB connectivity toolkit runs some sort of server? LabVIEW is my forte, not databases.
How can I resolve this error?
Thanks for your help