12-17-2016 12:13 AM - edited 12-17-2016 12:26 AM
Hi,
I have a few questions regarding DB connectivity toolkit.
1) Is it possible to have a few of this open concurrently connecting to the same local server but with different query?
2) Is it possible to lost connection with a local server? Sometimes I get prompt that i lost connection with the local server after running the program for a few mins.
3) Is there any way to have multiple queries executed with just 1 db tool open connection and 1 db close connection if the data i wanted are from the same table? The queries are shown below.
First Query
SELECT station_id,station_datetime,id,active_power_total, reactive_power_total FROM bp_rawdata WHERE station_id = 'P1001'ORDER BY station_datetime DESC;
2nd query
SELECT station_id,station_datetime,id,active_power_total, reactive_power_total FROM bp_rawdata WHERE station_id = 'P1004'ORDER BY station_datetime DESC;
3rd query
SELECT station_id,station_datetime,id,active_power_total, reactive_power_total FROM bp_rawdata WHERE station_id = 'P1002'ORDER BY station_datetime DESC;
Solved! Go to Solution.
12-17-2016 03:56 PM
1. Yes. But be sure to think about if it is neccesary and if it will cause race conditions.
2. Of course it is possible. But the reason for it - too little information to say!
3. Why not do something like this instead?
SELECT station_id,station_datetime,id,active_power_total, reactive_power_total FROM bp_rawdata WHERE station_id = 'P1002' OR station_id = "P1001.. and so on ORDER BY station_id, station_datetime DESC;
12-17-2016 07:39 PM
1) What is race conditions?
2) The below is the error msg after running the program for 30 mins.
3) The data are in the same table and i wanted to show it in different array. that's why i used executed the query differently
12-18-2016 02:35 AM - edited 12-18-2016 02:35 AM
12-19-2016 05:15 AM
Do you open and close the DB connection a lot? Open it once and use that connection until you close the program, much like you should do with VISA and files.
/Y
12-19-2016 05:19 AM
Hi,
How do I execute multiple queries with just 1 connection?
12-19-2016 05:47 AM
12-19-2016 07:43 PM
Is it alright if I do it in sequence? I have attached the VI
Thank you
12-20-2016 10:32 AM
04-07-2017 01:10 PM - edited 04-07-2017 01:13 PM
i have a access database with three columns. i want to insert data only 3rd column, other 2 column (auto number and time ) setting to auto update after data insert into 3rd column. how can i do this task using labview database connecting toolkit