Intouch 9.0 to SQL Server 2008 Express

Longhorn

Member
Join Date
Jul 2008
Location
Scotland
Posts
250
This is the first time i have tried to configure this sort of thing so please bare with me. I am attempting to configure Intouch to write data to an SQL Database Table. The Database and Intouch are on the same PC just now, so far i have:-
- Set-up a new SQL project called "OEE Database"
- Created a database called "FM02" in it
- Created a table called "FM02 OEE Data" inside FM02
- Created an ODBC connection to "OEE Database"
- Created a Bind List in Intouch with identical layout to "FM02 OEE Data" table
- Wrote a start-up script for SQL Connect :-
SQLConnect ( ConID_FM02_OEE, "DSN= OEE Database; DB= OEE Database" );
- Wrote a Shut-down script for SQL Disconnect :-
SQLDisconnect( ConID_FM02_OEE );
- Wrote an SQL Insert script :-
IF Test_SQL_Send == 1 THEN
SQLInsert( ConID_FM02_OEE, "dbo.FM02 OEE Data", "FM02 OEE Data" );
ENDIF;
Test_SQL_Send is just a test push button.
Checked that the SQl database is online.

I am probably missing something fundamental???
Any Ideas??
 
Also, when i set-up the SQL Database ODBC connection in Windows, the test returns successful so i am almost certain the problem is my code in Intouch.

Any Ideas?
 
Resolved:::

Sorted :- When you name the table in SQL you can have spaces but for some reason Intouch doesnt like spaces in the SQL Table or the Bind List.

:p
 

Similar Topics

I've tried following "Wonderware InTouch HMI Supplementary Components Guide" but the value from sql not appear on intouch runtime screen. I...
Replies
25
Views
12,786
Hi, I want to connect the Intouch and MS SQL Server. But now I cannot access the SQL Server into MS SQL Server, the message was showing Invalid...
Replies
4
Views
7,141
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,584
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,122
Hi, I have an intouch 9.5 project passing data to a MS SQL 2005, all good so far. I want to upgrade my HMI project to 2014R2, and SQL to 2012, but...
Replies
0
Views
1,119
Back
Top Bottom