5/11/2022 12:48 PM | |
Joined: 4/25/2022 Last visit: 2/6/2023 Posts: 4 Rating:
|
hello everyone i need to calculate the sum of a column shown in a report in the runtime using c-scripting. my report is sorted by date and i need to calculate the sum during all the period shown. can anyone help me please. ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 05/11/2022 13:29:43New subject after splitting |
|
5/12/2022 12:12 PM | |
Joined: 4/25/2022 Last visit: 2/6/2023 Posts: 4 Rating:
|
thank you very much but can i connect to sql database using c-scripting if i want to use the second solution. |
5/12/2022 11:52 PM | |
Joined: 9/21/2006 Last visit: 5/25/2023 Posts: 247 Rating:
|
It is possible to connect to the SQL Server database from C scripting. However, it is considerably easier to connect to the database using MS ADODB objects and VBS, so that is how I have done it. See Example: Configuring a Database Connection with VBS for an example of using ADODB in VBS scripting. If you are trying to access tag logging data, you will need use the WinCC OLE-DB provider (part of Connectivity Pack) to unpack the tag data from the BLOB that is it stored as in the DB. See Export of archive data using the SIMATIC WinCC/Connectivity Pack (OLE DB Provider). |
5/13/2022 9:34 PM | |
Joined: 4/25/2022 Last visit: 2/6/2023 Posts: 4 Rating:
|
thank you very very much mmcKay |
Follow us on