How to send a SQL statement longer than 1024 characters with EcoStruxure Machine SCADA Expert?
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:
$SQL2 = "second 1000 chars"
$DBExecute("ConnName", "{SQL1}{SQL2}")
Опубликовано для: Schneider Electric Казахстан


Нужна помощь?
Инструмент для подбора продукции
Быстро и легко находите подходящие продукты и принадлежности для ваших условий применения.
Получить коммерческое предложение
Заполните заявку онлайн, и с вами свяжется наш эксперт.
Где купить?
Легко находите ближайшего к вам дистрибьютора Schneider Electric.
Центр поддержки
Находите ресурсы поддержки для всех ваших потребностей в одном месте.