YamidP Posted March 13, 2020 Share Posted March 13, 2020 Hello, everybody. I am currently working on a production data record in a database (SQL Server), however, there is an error in the command "db.Execute()" in the sequence shown in the attached image. How can I solve the error ? NOTE: I work with: DAQFactory 16.2 , SQL Server 2014 Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted March 24, 2020 Share Posted March 24, 2020 Your construction of the SQL string is wrong. You need to use + to create the string: db.execute(dbase, "INSERT INTO HAR5.dbo.OEMH5(ContadorTotal) VALUES (" + conteo_salida[0] + ")") Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.