NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

SQL "View" with TS?

Hello,

 

is it possible to handel a SQL "View" with TestStand or the Database Viewer?

I can see my tables but not the view.

 

greetings

 

schwede

0 Kudos
Message 1 of 7
(3,727 Views)

In the Database Viewer you need to execute a query to get your VIEW results. For TestStand itself you can modify the database schemes and statements in Configure > Database options or use custom SQL query steps.

 

Creating a TestStand Database Schema from Scratch 

 

Best Regards,

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 2 of 7
(3,698 Views)

Hello,

 

that's not what i mean. I have createtd an udl-file to connect to the datatbase. If i call this from excel i see all my tables and the "view".

When i call this from the database viewer i can see only the tables and not the "view".

 

greetings

 

Schwede

0 Kudos
Message 3 of 7
(3,673 Views)

Did you try changing the Viewer options?

 

databaseViewerView.png

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 4 of 7
(3,665 Views)

Thankyou,

 

this is the first thing, the second is that i can`t write to the database.

If i use a table everything is ok. When i took the view i get an error-message:

-2146825037 The recordset don`t support updating. This can be a problem of the constriction of provider or lock type....

 

 

Options.jpg

 

Can you help me with this, too?

 

greetings

 

schwede

 

 

0 Kudos
Message 5 of 7
(3,662 Views)

Does that help?
http://digital.ni.com/public.nsf/allkb/A324D2172DD09C08862570F8004FA3C3?OpenDocument

 

If not please upload your database scheme so I can try to reproduce it here.

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 6 of 7
(3,650 Views)

That doesn`t help.

 

I have attached the file.

 

schwede

0 Kudos
Message 7 of 7
(3,633 Views)