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,687 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,687 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,684 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,677 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,674 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,669 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,661 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,652 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,636 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,629 Views)