AfterConnect

<< Click to Display Table of Contents >>

Navigation:  The Vo2Ado RDD > CallBacks > Connection CallBack Methods >

AfterConnect

Previous pageReturn to chapter overviewNext page

METHOD AfterConnect(sConn, oConn) CLASS <CALLBACK>

 

Arguments

 

sConnConnection Name
oConnThe 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