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

AVEVA™ Plant SCADA

SQLDisconnect

  • Last UpdatedJul 18, 2023
  • 1 minute read

Closes the SQL connection to a database and disposes the DB connection object specified by the function parameter.

This function is a blocking function and should not be called from a foreground task.

Syntax

SQLDisconnect(hSQL)

hSQL:

The handle to the DB connection object, returned from the SQLConnect() function. The handle identifies the DB connection object where details of the associated SQL connection are stored.

Return Value

0 if success, otherwise an error code (for details call the SQLErrMsg() function).

SQLCreate, SQLOpen, SQLClose, SQLDispose, SQLConnect, SQLDisconnect, SQLInfo

Example

See SQLConnect.

See Also

SQL Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in