<< Click to Display Table of Contents >> AfterConnect |
![]() ![]() ![]() |
METHOD AfterConnect(sConn, oConn) CLASS <CALLBACK>
Arguments
sConn | Connection Name |
oConn | The connection object (just opened) |
Returns |
Irrelevant
Description
With this callback you have the execute code before the first table of the connection is opened. For example if your application uses an approle you could Execute some code for the connection to activate the approle:
Example
METHOD AfterConnect (sConn, oConn) CLASS MyConnectionCallBack
oConn:Execute("sp_setapprole 'MyAppRole', 'MyAppRolePassWord' ")
RETURN NIL