LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Export DSN from a Windows NT/2000 machine using Labview

How would you get a list of DSNs and their configurations on a Windows NT/2000 machine using Labview using Labview? Thanks.
0 Kudos
Message 1 of 2
(3,820 Views)
Hello mbuttman,

You can get a list of the DSNs registered with the system by using LabVIEW's registry key VIs and reading the following keys.

For User DSN:

HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\ODBC Data Sources

For System:

HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources

Please let me know if you have any questions.

Regards,

Matt F
0 Kudos
Message 2 of 2
(3,807 Views)