LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

building application with database

Hello Labviewers,


I build some labview vis wich are functioning very well as long as I execute them in the labview environment.
But when I use the application builder to build an exe file from it the programm can't access the database anymore.


I use Labview 7 and the Database connectivity toolkit to connect to an Access Database.
the Connection to the database is made by an udl file.

Maybe I'm doing something wrong when I include the udl and the mdb file as a support file during the build process ?!?
Or do I have to include some extra files (like I have to when using the report gen toolkit)

Many thanks for your help
Simon
0 Kudos
Message 1 of 3
(2,696 Views)
Hi Simon,
About database not working with EXE is the path in the UDL file has to be changed to a path of the support file are placed ,so its better you dont add these files in the support Dir instead you can create a fixed path for these files and place these support files into the folder on the first run,so this may solve your problem.
0 Kudos
Message 2 of 3
(2,696 Views)
thank you vicky for your reply,

i followed your hint not including the udl files to my support files but had no success.

Generally I use the procedure described here:http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/fcccbc6b519cec2e86256c95007e8fa9?OpenDocument.
Is this still the right way with lv 7.

I still believe that there is some problem with my paths leading to my database. Meanwhile I've tried relative paths and absolut ones with no success.

There is no error message displayed, but the text fields where I'd like to see the results of my sql querys stay white.

Simon
0 Kudos
Message 3 of 3
(2,696 Views)