In EcoStruxure Machine SCADA Expert, the function DBExecute can be used to write some data in SQL Database.
There is a limitation with this function. The maximum length of an SQL statement 1024 characters.
The goal of this article is to explain how to send more than 1024 characters in the SQL Databse, with the function DBExecute
This article is applicable for EcoStruxure Machine SCADA Expert, all version
To execute SQL commands longer than 1024 characters with DBExecute() or DBCursorOpenSQL(), need to break the SQL statement into fragments, storing those fragments in string tags, and then using tag pointers to reference those tags.
For example:
There is a limitation with this function. The maximum length of an SQL statement 1024 characters.
The goal of this article is to explain how to send more than 1024 characters in the SQL Databse, with the function DBExecute
This article is applicable for EcoStruxure Machine SCADA Expert, all version
To execute SQL commands longer than 1024 characters with DBExecute() or DBCursorOpenSQL(), need to break the SQL statement into fragments, storing those fragments in string tags, and then using tag pointers to reference those tags.
For example:
$SQL1 = "first 1000 chars"
$SQL2 = "second 1000 chars"
$DBExecute("ConnName", "{SQL1}{SQL2}")
$SQL2 = "second 1000 chars"
$DBExecute("ConnName", "{SQL1}{SQL2}")
Опубліковано для: Schneider Electric Україна


Потрібна допомога?
Інструмент вибору продукту
Швидко та легко знаходьте потрібні продукти й допоміжне обладнання для своїх завдань.
Розрахувати вартість
Ставте свої запитання щодо продажів онлайн, і з вами зв’яжеться фахівець
Де придбати?
Зручний пошук найближчого дистриб’ютора, магазина або спеціалізованого партнера Schneider Electric у вашому регіоні.
Довідковий центр
Знайдіть усі необхідні ресурси для підтримки в одному місці.