Read data from SQL Database

Find and share HowTos to various installations / configurations!
Search

Post Reply
3 posts • Page 1 of 1
aleksandar.postolov
Posts: 19
Joined: Thu Sep 05, 2013 3:51 pm

Read data from SQL Database

Post by aleksandar.postolov »

Hi Forum

I want to read some data from a sql database and display the values in a panel (table). No need to store the data in WinCC OA, just display.
How do I do this, any ideas or examples?

Best regards
Aleks

User avatar
mkoller
Posts: 741
Joined: Fri Sep 17, 2010 9:03 am

Re: Read data from SQL Database

Post by mkoller »

use the CtrlADO CTRL extension, which provides commands to directly read from an external database, e.g. dbOpenConnection(), dbOpenRecordset(), etc.

aleksandar.postolov
Posts: 19
Joined: Thu Sep 05, 2013 3:51 pm

Re: Read data from SQL Database

Post by aleksandar.postolov »

well, tried it liked described in the manual wit DSN and ODBC (ODBC Driver 13 for SQL Server).Configuration done with c:\\Windows\\SysWOW64\\odbcad32.exe
receiving the following error:

WCCOAUi111:2018.11.28 11:24:02.948[-1]
WCCOAUi111:["Fehlernummer : "][-2147467259]
WCCOAUi111:["Basisfehler : "][0]
WCCOAUi111:["Beschreibung : "]["[Microsoft][ODBC Driver Manager] Der angegebene DSN weist eine nicht übereinstimmende Architektur von Treiber und Anwendung auf."]
WCCOAUi111:["SQL-Fehlertext: "]["IM014"] Image

If I configure it with the ODBC 64 Bit, it looks fine.
Attachments
dsn32.png

Post Reply
3 posts • Page 1 of 1