LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem With DB Insert VI

Hello Forum,

 

i have an strange behavior i can`t explain. I try to write some info's in a SQL Database.

If i use the SQL Execute VI it works fine, but if i use the Insert VI, that i would prefer, the error 1 occurred.

 

Can someone help me to get the failure? 

 

Thanks a lot!

Tim

 

Screenshot 2021-03-09 213229.png

 

 

0 Kudos
Message 1 of 3
(1,519 Views)

A first problem is that you cannot set UniqueID since it's AUTOINCREMENT, thus automatically managed by the RDBMS. In any case, it's not a text.

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 3
(1,500 Views)

Thanks for replying!

I would like that the first row "UniqueID" will get automatically filled out with the next UInt number by the DatabaseEngine.

But when I only insert one value, for Example the "BauteilKategorie" an error occurred.

 

My wish is, that i provide "BauteilKategorie" Line 2 till "Besitzer" Line 8 and the Database engine will fill out "UniqueID" automatically.

 

Best Regards

Tim

 

 

0 Kudos
Message 3 of 3
(1,493 Views)