labstew
2007-11-02 13:40:05 UTC
Hello,
I am having issues inserting data into a SQL database. I don t have very much experience with SQL but all of the SELECT statements I made with labview worked perfectly. However once I got to the INSERT portion of my code I can t get anything to work.
I am sending an array into the "data" input of DB Tools Insert Data and I am sending in a list of elements in an array into the columns input. I get an error that says "Argument error; the number of columns does not equal the number of parameters." but my arrays are the same size. I have been looking on the forums and have seen some information that leads me to believe that you can t send an array into the DATA input, but if you can t how will I sort the Columns?
I can attach the code if needed, but all of the data is gathered from select statements from our database so I am not sure it will be very helpful.
Thanks,
Andrew L
I am having issues inserting data into a SQL database. I don t have very much experience with SQL but all of the SELECT statements I made with labview worked perfectly. However once I got to the INSERT portion of my code I can t get anything to work.
I am sending an array into the "data" input of DB Tools Insert Data and I am sending in a list of elements in an array into the columns input. I get an error that says "Argument error; the number of columns does not equal the number of parameters." but my arrays are the same size. I have been looking on the forums and have seen some information that leads me to believe that you can t send an array into the DATA input, but if you can t how will I sort the Columns?
I can attach the code if needed, but all of the data is gathered from select statements from our database so I am not sure it will be very helpful.
Thanks,
Andrew L