From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Database Connectivity Toolkit (multi row insert)

Solved!
Go to solution

Just a guess: are you sure you can use comma as decimal separator?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 11 of 31
(1,440 Views)

Now that you have no quotes on the float, your issue is probably the comma as a decimal separator.  

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 12 of 31
(1,440 Views)

I had the same error even before adding the channels table when I was trying to insert just the values ( My query was : insert into mesure (valeur) values(%f); ) .

0 Kudos
Message 13 of 31
(1,437 Views)

Right.  And if you have a comma separator, your query looks like it has two input parameters.  

 

Insert into mesure (valeur) values (13,935527);

 

13 is one input parameter.

935527 is another input parameter.

 

That's why the period is the superior decimal separator.  Smiley Very Happy

 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 14 of 31
(1,430 Views)

Obviously. And won't you try using a period as decimal separator?

Just prepend %.; to your format string.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 15 of 31
(1,427 Views)

I tried that, no difference except that I have the error with a period now instead of a comma

erreur.PNG

0 Kudos
Message 16 of 31
(1,422 Views)

It seems that your query ends with the substring "insert i": where does it come from?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 17 of 31
(1,414 Views)

I think it's just due the error message (window too small for the whole message) and it has nothing to do with the query. My query is just as shown in the string constant.

0 Kudos
Message 18 of 31
(1,405 Views)

Look in your ODBC connection settings.  You may have to enable multiple statement queries.  Otherwise, anything after the first semicolon is a syntax error.  

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 19 of 31
(1,389 Views)

Here:

Capture.PNG

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
Message 20 of 31
(1,382 Views)