Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Interface for Relational Database RDBMS via ODBC

Verify successful data distribution

  • Last UpdatedAug 19, 2025
  • 1 minute read

To verify that all result rows were successfully distributed to the corresponding target tags, check the state of the Boolean @rows_dropped variable. If the variable is TRUE , one or more tag updates failed. The interface stores the undelivered data, and you can write it to the RDBMS as follows:

SELECT timestamp AS PI_TIMESTAMP, name AS PI_TAGNAME
FROM table1
WHERE timestamp > GETDATE()-1
ORDER BY name, timestamp;

WHILE @ROWS_DROPPED
INSERT INTO table2 (name, timestamp, value)
VALUES (?,?,?) LOOP;

Note: The intent illustrated in the above statements is to INSERT the undelivered date into the RDBMS. Please, do not modify the example by substituting either UPDATE or DELETE.

The @rows_dropped variable is supported only for tag distribution.

TitleResults for “How to create a CRG?”Also Available in