Home How To Online Documentation Support Download Order

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric
SAInterval

Enums and Typedefs

  

Usage

Class Members

Examples

SACommand::setConnection

void setConnection( SAConnection *pConnection );

Associates a SAConnection object with the specified SACommand object.

Parameters

pConnection.    A pointer to an existing SAConnection object.

Remarks

Use the setConnection method to associate SACommand and SAConnection objects. Only one connection can be associated with a command.

Connection for the command can also be set in a SACommand constructor.

To get associated SAConnection object use Connection method.

When you call setConnection method on SACommand object that already has associated connection, the previous association will be correctly discarded (with closing opened command if needed) and new connection will be set.

If you attempt to call any method on a SACommand object that requires database access with no valid connection, an error occurs.

Server specific notes

No specific information.

See also

Connection

SAConnection

Problems and Questions

If you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com.