wcDBSet( )

Syntax . . Returns . . Tips . . Related Topics . . A-Z Index . . Home

Sets the specified database server connection to the the active connection.

Example

returnCode = wcDBSet(cntrlHandle, "conn2");

Syntax

int wcDBSet(void *controlHandle, 
            char *conName)
controlHandleThe handle to the control structure.
conNameThe name of the connection. Must be the conName specified in the wcDBOpen( ) call that opened the connection. Use the connection name returned by wcAppPageConnName() to set the active database connection to the AppPages repository. If you want to use wcDBSet() for the connection you set in your AppPages using , conName has to be the connection name you use in AppPages, plus the session ID appended at the end.

Returns

0Success.
Error codeFailure or exception. For a list of possible error codes, see Error Messages.

Tips

Related Topics

wcAppPageConnName( )
wcDBClose( )
wcDBOpen( )


Top of Page . . Syntax . . Returns . . Tips . . A-Z Index . . Home