J
I am using WinCC V5.1 and one of customer want me to write C script to connect to SQL server database of his inventory system. Can any one suggest me solution.
Thanx in advance.
Thanx in advance.
There are two ways I know you can interface from a C script in WinCC to a Database supporting ODBC
1. Use the ODK functions that WinCC provides. There is a set of ODBC ODK functions that allows you to open the Database connection and perform actions
2. Use MSDAC (Microsoft Data Access Components), e.g. the RecordSet Object to do the same. A not very well known feature of WinCC scripts is its ability to use COM Objects. Since RecordSet is a COM object you can use it in a script as an interface to any ODBC Database
I will send you an example of the latter solution direct to your E mail address
(This shows that within Siemens there are people that know what you can do with WinCC)
Kind Regards
Ronald Nijssen
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
S | WinCC audit csv file bulk insert to SQL DB | General Software Chat | 0 | |
R | WinCC Flexible Stored Procedures SQL | Human Machine Interface - HMI | 0 | |
N | creating new database in wincc sql server and access data | Computing | 3 | |
H | WinCC v6.0 VB script and SQL | General Automation Chat | 2 | |
A | WinCC V5 SQL Connect with VB or MS-Access | General Software Chat | 2 |