05-27-2015 01:25 AM
hi,
i am inserting the data continually in while loop using data base toolkit.missing some data insert table.and also form inserting data in array it will correct.
Solved! Go to Solution.
05-27-2015 01:37 AM
hi,
here i attached my programing image.
05-27-2015 03:01 AM
There are some issues with your code.
Do you get any errors on the error wire??
How does your sql queries to the database look like? could they have wrong/illigal values/format?
05-27-2015 03:21 AM
hi,
my quary form and code working fine...no error message come.only problem insert some data missing in table (ex i am insert 1 to 10 data but actually inserted 1,2,3,5,8,9,10) and insertted in array data 1 to 10 correct..
05-27-2015 03:31 AM
Make the changes that I have pointed out.
Then try again.
What type of database are you connecting to ?
05-27-2015 04:10 AM
hi,
this is sub vi.i will closed connection in main vi.
using sql server connection.
05-27-2015 04:42 AM
It is okay that you close the connection to the database in the main vi, but you need to close the recordset that the Execute Query is generating.
You are not getting all errors that is happening in the while loop, only the last value of the error cluster is going out of the while loop.
If any errors has happend in one of the iterations of the while loop, that error will be overwritten in the next iteration, and you will loose the information about the error.
You can fix this by
05-27-2015 08:35 AM
ya correct, the following error will come.
1).DB Tools Close Connection.vi->Untitled 1<ERR>Open recordset object.
so don't know how to close recordset object.but i closed main vi DB tool closed connections.
05-28-2015 05:30 AM
You can do that with the "DB Tools Free Object.vi"