Skip to content

SQLDisconnect - cSQLConnection

Disconnect from the database and free the connection object.

Type: Procedure

Syntax

Procedure SQLDisconnect

Call Example

Send SQLDisconnect

Description

This procedure will call the Connectivity Kit's disconnect function and free the DataFlex connection object.

Sample

Handle hSQLMngr
Handle hDBC

Object oSQLHandler Is A cSQLHandleManager
    Move Self To hSQLMngr
End_Object

Get SQLFileConnect of hSQLMngr Customer.File_Number to hDBC
Send DoSomeEmbeddedSQLStuff hDBC
Send SQLDisconnect of hDBC

See Also

SQLConnect