Programming Guide : Working with a Database : How Programming for Multiple Sessions Works : How You Can Disconnect a Session
 
Share this page          
How You Can Disconnect a Session
OpenROAD provides the Disconnect method for closing open connections. The syntax is:
integer = DBSessionObject.Disconnect()
DBSessionObject
Specifies the object that represents the session you want to close
OpenROAD also disconnects an open session if you remove all references to the session (set all references to the DBSessionObject for the session to null). In either case, closing a session closes any open cursors and query objects in that session and commits any transaction open in the session.