NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Launch database viewer with command line

Hi,
 
How is it possible yo launch databaseView.exe with command line in order to programmatically open and view a MDB file?
Thanks in advance,
 
Emmanuel
0 Kudos
Message 1 of 6
(3,957 Views)

Hello Emmanuel,

 

Sorry but what your trying to do seems to be impossible.

 

Regards,

Alexandre M. | Certified LabVIEW Developer
Embedded and Control Systems Engineer (NI France)
0 Kudos
Message 2 of 6
(3,914 Views)

Hi Alex,

perhaps it's impossible, but how do you explain that we can launch the "Database Viewer" with "Connection String Expression" from the TestStand "Database Options" Dialog Box / "Data Link" Tab / "View Data" Button ?

Thanks for you help,

Emmanuel

0 Kudos
Message 3 of 6
(3,906 Views)

Emmanuel -
The DatabaseViewer application exposes an ActiveX server with the following interfaces:

Application with method Activate and property Visible.
DataLinkView with methods Show, refresh and NewSQLWindow, and property ConnectionString.

Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 6
(3,874 Views)

HI Scott,

Thank you for your answer, that's what I need.

I just take time to localize the Active-X Class "zNI TestStand Database Viewer Version 1.1" (why "zNI ..." ?).

Just one remark : what is the interest of "DataLinkView methods NewSQLWindow" if we cant' call unexisting method "Execute SQL Commands " ?

Best regards,

Emmanuel

0 Kudos
Message 5 of 6
(3,800 Views)

Hi Emmanuel,

 

There is also a command line interface to Database Viewer.

Please refer to this help topic in TestStand help for more information:

Environment Reference->Database Viewer Application->Command Line Arguments.

Specifically for your use case, you could use "DatabaseViewer.exe -connectionfile <filepath>"

 

Hope this helps.

Regards,

Tinu

0 Kudos
Message 6 of 6
(2,591 Views)