SQLData object automatic database connection command
- Last UpdatedJul 19, 2024
- 1 minute read
The SQLData object provides automatic connection to the SQL Server database via the DBAutoConnect command attribute.
When the DBAutoConnect attribute is TRUE, the object connects to the database on deployment. If the database connection is lost, the object attempts to automatically reconnect to the database when the next database access command is active.
The object provides a command (DBConnectStateCmd Boolean attribute) that allows for a manual connect and disconnect to the SQL Server database. Manual disconnection from the SQL Server database is not allowed when the DBAutoConnect attribute is set to TRUE.