contents   index   previous   next



Database disconnect()

syntax:

database.disconnect()

return:

number - 0 if the call was successful; otherwise, a nonzero status code based on the error message produced by the database. If the method returns a nonzero status code, use the majorErrorCode and majorErrorMessage methods to interpret the meaning of the error.

 

description:

Disconnects Database object from its data source.

 

see:

#link <sedbc>, Database connect(), Database connected()

 

example:

// The example checks to see if

// the Database object is

// connected to a data source, and,

// if so, disconnects it.

if (db.connected())

  err = db.disconnect();

 


Database execute()