LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I find where an opened database really is?

Using the Database Connectivity toolset, my Labview vis may run from different machines that have local ODBC connection 'test' defined in different places. How do I find out the actual path where the database is?
Thanks.
Zuolan Wang
0 Kudos
Message 1 of 4
(2,441 Views)
The registry entry HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI lists each DSN and if the database is Access, the DBQ key will list the path. If you're using something more robust like SQL Server or Oracle, only the server name is given.
0 Kudos
Message 2 of 4
(2,441 Views)
You should be able to do this with the "DB Tools Get Properties.VI" from the utility pallette. The "defualt database" from the returned cluster should give you the actual path.
0 Kudos
Message 3 of 4
(2,441 Views)
Thank you Aaron. It worked.
Zuolan Wang
0 Kudos
Message 4 of 4
(2,441 Views)