Results 1 to 2 of 2

Thread: Help required in RDO

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    1

    Help required in RDO

    Hi,

    Can someone help me with this problem?
    I am using RDO to connect to a remote Oracle server. The problem is that whenever I use EstablishConnection for establishing a connection to the database, an entry for this connection gets automatically inserted in the v$session table. But after the connection is closed by invoking the Close method of rdoConnection object that entry remains in the v$session table. It is not getting deleted. As a result when the maximum connection is reached we have to manually monitor the connections and kill them. Here is the code snippet used to establish connection. Can someone help me with this - how do I ensure that the entry for the connection gets deleted from v$session table when the connection is closed?
    VB Code:
    1. Public Cn As New rdoConnection
    2. Public mrdoEnv As rdoEnvironment
    3.  
    4. With rdoEngine
    5.         .rdoDefaultLoginTimeout = 20
    6.         .rdoDefaultCursorDriver = rdUseIfNeeded
    7.     End With
    8.     Set mrdoEnv = rdoEnvironments(0)
    9.    
    10.     mbEnvOpen = True
    11.     With Cn
    12.         .Connect = "DSN=ABC;UID=" & UserId & ";PWD=" & password & ";SRVR=" & Server
    13.         If Not frmAsync Then
    14.             .EstablishConnection rdDriverComplete, False
    15.         Else
    16.             .EstablishConnection rdDriverComplete, False, rdAsyncEnable
    17.             While .StillConnecting
    18.                 j = j + 1
    19.                 DoEvents
    20.             Wend
    21.         End If
    22.         mrdoEnv.rdoConnections.Add Cn
    23.     End With



    Edit: Added [vbcode][/vbcode] tags for clairty. - Hack
    Last edited by Hack; Jul 8th, 2005 at 06:54 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width