Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Can't open database connections after building stand-alone application
When using the database connectivity toolkit in LV 7.0 I can connect
to ODBC or OLE data sources and use them without a problem. Once the
stand-alone application is built I get the following error for ODBC.

DB Tools Open Connec (String).vi->test-db-app.vi<ERR>Exception occured
in Microsoft OLE DB Provider for ODBC Drivers, [MySQL][ODBC 3.51
Driver]Can't connect to MySQL server on 'neuromancer.uky.edu' (10061).
in DB Tools Open Connec (String).vi->test-db-app.vi

or for OLE:

DB Tools Open Connec (String).vi->DB Tools Open Connec
(Path).vi->test-db-app.vi<ERR>Exception occured in Provider,
Unspecified error.  in DB Tools Open Connec (String).vi->DB Tools Open
Connec (Path).vi->test-db-app.vi

Anyone have any ideas?

Thom Coates

Report this thread to moderator Post Follow-up to this message
Old Post
Thom
04-02-04 04:34 PM


Re: Can't open database connections after building stand-alone application
Hi Thom,
A quick way to narrow this problem down is to try connecting to an
Access or MS SQL database on your computer.  This will remove MySQL
out of the picture and will allow us to make sure that the code in
LabVIEW is written correctly.

Please let me know how this goes.

Feroz

Report this thread to moderator Post Follow-up to this message
Old Post
FerozP
04-05-04 06:40 PM


Re: Can't open database connections after building stand-alone application
Thom,

I built an application from a VI that I use to communicate with mySQL
and it worked just fine.  Did you make sure to define the connection
on the target computer (ie, use ODBC Administrator to define the DSN
or include the *.udl file with the project and verifying the
connection worked)

What OS is your target machine?  If it's Win9x or NT, then MDAC isn't
included with the OS and you need to install it separately.  Chapter 6
of the Database Connectivity Toolset User Manual describes how to do
this.

Report this thread to moderator Post Follow-up to this message
Old Post
Crystal
04-05-04 07:38 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

LabVIEW archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 02:32 PM.

 

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.