|Home||How To||Online Documentation||Support||Download||Order|
void setConnection( SAConnection *pConnection );
Associates a SAConnection object with the specified SACommand object.
pConnection. A pointer to an existing SAConnection object.
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.
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 email@example.com.