10/29/2012 12:33 PM | |
Posts: 153 Rating: (2) |
thanks for reply kour!!!! can some provide me vbs script to read data from SQL database ??? |
Last edited by: O_Moderator at: 10/29/2012 12:43 PMnew subject after splitting from /tf/WW/en/Posts/82245#top |
|
10/29/2012 4:19 PM | |
Posts: 3037 Rating: (192) |
Hello, Here you can see more information: How can you export data from the WinCC database into an ASCII file via a C script? What options do you have for exporting a database in SIMATIC WinCC? What options are there in WinCC for read and write access to TagLogging/AlarmLogging archives? Tweety |
10/30/2012 8:38 AM | |
Posts: 153 Rating: (2) |
thnxTweetyfor provide such a vast information!!!!! but I supposed to get some sample vbs code.....if possible pls provide me
|
10/30/2012 2:37 PM | |
Posts: 3037 Rating: (192) |
Hello p'abs, You can see how you can read a value from the database with vbs. https://www.automation.siemens.com/mdm/default.aspx?DocVersionId=16483325707&Language=en-US&TopicId=6168965899 Tweety |
This contribution was helpful to3 thankful Users |
11/3/2012 8:56 AM | |
Posts: 153 Rating: (2) |
thanks a lot Tweety |
5/22/2014 11:13 PM | |
Joined: 10/3/2010 Last visit: 10/31/2024 Posts: 1563 Rating: (192) |
Hey, you should add something like this, sorry not translated to your code but a copy/paste of some example found online for you: Dim rs As DAO.Recordset Dim fld As DAO.Field Dim i As Integer Set rs = DBEngine(0)(0).OpenRecordset("SELECT * FROM MyTable;") For i = 0 To rs.Fields.Count - 1 Set fld = rs.Fields(i) Debug.Print fld.Name, fld.Type Next Set fld = Nothing rs.Close Set rs = Nothing |
B r g d s , |
|
This contribution was helpful to1 thankful Users |
12/17/2017 8:53 AM | |
Posts: 144 Rating: (7) |
Hello Same thread here: |
Follow us on