Wonderware Intouch SQL Access Manager

tgulch

Member
Join Date
Jul 2017
Location
Toledo
Posts
1
I have a wonderware standalone HMI collecting process data from our production line. I am writing those values to a database in MySQL, though I did start playing with it in MS Access at first.

The problem is the two different insert options.

When I use the SQLInsert function, no errors, everything works fine. When I use the SQLInsertPrepare and SQLInsertExecute functions, it gives me item cannot be found in the requested ordinal error.

This is the script I am using for the insert by itself that works without problem

ResultCodePreparL1O = SQLInsert(Quad_Connection, "STR1_Overview_Report" , "STR1_Overview");

ResultCodePreparL1B = SQLInsert(Quad_Connection, "STR1_Bronx_Report" , "STR1_Bronx" );

ResultCodePreparL1N = SQLInsert(Quad_Connection, "STR1_NDT_Report" , "STR1_NDT");


And this is the script I am using for the insert prepare and execute that is giving me errors

ResultCodePreparL1O = SQLInsertPrepare(Quad_Connection, "STR1_Overview_Report" , "STR1_Overview" , STR1_OV_State);
ResultCodeInsertL1O = SQLInsertExecute(Quad_Connection, "STR1_Overview" , STR1_OV_State);
ResultCodeEndL1O = SQLInsertEnd(Quad_Connection, STR1_OV_State);

ResultCodePreparL1B = SQLInsertPrepare(Quad_Connection, "STR1_Bronx_Report" , "STR1_Bronx" , STR1_Bronx_State);
ResultCodeInsertL1B = SQLInsertExecute(Quad_Connection, "STR1_Bronx" , STR1_Bronx_State);
ResultCodeEndL1B = SQLInsertEnd(Quad_Connection, STR1_Bronx_State);

ResultCodePreparL1N = SQLInsertPrepare(Quad_Connection, "STR1_NDT_Report" , "STR1_NDT" , STR1_NDT_State);
ResultCodeInsertL1N = SQLInsertExecute(Quad_Connection, "STR1_NDT" , STR1_NDT_State);
ResultCodeEndL1N = SQLInsertEnd(Quad_Connection, STR1_NDT_State);

I get the same error and success in both MySQL and Access with these different scripts.

I am thinking it has to be something in the table name and bindlist, but I dont understand how it works just fine with the straight insert command.

**Edit**
Also, the prepare and end commands return with no errors. It is the InsertExecute command that is giving the actual error.
 
Last edited:

Similar Topics

Hi All, I currently looking to set up Wonderware Intouch 2014 R2 v 11.1.08 to SQl Data Base For logging alarms, I keep getting An error when I...
Replies
2
Views
3,412
I want to display the results from a SQL SELECT statement inside intouch. Looking for some kind of example as the SQL Access Manager doc is not...
Replies
6
Views
11,630
Dear all, I have a problem when migrating wonderware Intouch from touchscreen panel to desktop. I can't connect to database when using intouch in...
Replies
0
Views
2,576
Hello All, I am trying to connect to a server using Distributed Name Manager and assigning InSQL Provider for trending purposes. I've set up the...
Replies
1
Views
3,114
Hello everyone, I am developping an application and i want to be able to consult the info in a certain period of time. For example ÁreaX...
Replies
0
Views
3,770
Back
Top Bottom