EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Posted: 2020-11-11 02:32 AM . Last Modified: 2023-05-03 12:07 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-11-11 02:32 AM . Last Modified: 2023-05-03 12:07 AM
G'day experts!
Config
SCADA Version: Geo SCADA 2019
OS: MS Server 2019
SQL: 2016 SP1
I'm using "ODBC Linked Tables" to query Microsoft SQL DB via a 64-bit System DSN (Using latest Microsoft ODBC driver, V17).
When I query the Linked table into a Mimic List object using the following query "SELECT * FROM AwesomeTable", I can successfully populate the list with the SQL table contents, with the exception of the ID column. For this column (configured as an SQL Bigint data type), no value is displayed in the list.
Things I've tried unsuccessfully:
Is there a known limitation retrieving this data type from SQL via ODBC? Any suggestions to remedy this?
Thank you in advance,
V
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-11-12 02:56 AM
Yes, ClearSCADA / GeoSCADA Expert does not support BIGINT datatypes.
It doesn't support it using the ODBC Driver, and it doesn't support it using ODBC Linked Tables.
The last way that I handled this in SQL Server was to just create a view on the SQL Server end which returned the data CAST (and wrapped around) to an INT value. This worked for the application which was totalised volumes, since wrap around was already expected, and I just had to adjust the rollover value to be the lower INT value.
YMMV
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-11-12 02:56 AM
Yes, ClearSCADA / GeoSCADA Expert does not support BIGINT datatypes.
It doesn't support it using the ODBC Driver, and it doesn't support it using ODBC Linked Tables.
The last way that I handled this in SQL Server was to just create a view on the SQL Server end which returned the data CAST (and wrapped around) to an INT value. This worked for the application which was totalised volumes, since wrap around was already expected, and I just had to adjust the rollover value to be the lower INT value.
YMMV
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-11-12 06:13 PM
Hi Bevan,
many thanks for your input and suggestions!
For anyone else's interest, I did also discover that using a decimal datatype (instead of BigInt), e.g. Decimal(18,0) within the SQL table column definition, the column may still be configured with the "Is Identity" feature to auto-increment e.g. an index column in my case.
The ODBC driver is able to interpret this data type as a string so can be displayed on a grid and referenced by VBScript to perform any of the SQL CRUD functions I was looking to do.
Thanks again and have a great day!
V
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.