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

AVEVA™ Plant SCADA

SQLClose

  • Last UpdatedJul 18, 2023
  • 1 minute read

Closes a SQL connection between the DB connection object specified by the function's parameter and a database. The DB connection object is not deleted from the memory until calling SQLDispose function.

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

Syntax

SQLClose(hSQL)

hSQL:

The handle to the DB connection object, returned from the SQLCreate() 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 SQLCreate.

See Also

SQL Functions

In This Topic
Related Links