CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Posts
    4

    Killing DAO connection..

    I want to disconnect from an Oracle database so I can connect with another user & password -same dsn - but VB seems to keep the old connection and doesnt change to the new use/passw.. anyone has done this before?

    Thanks in advance!


  2. #2
    Guest

    Re: Killing DAO connection..

    Do you close Database and all Recordset objects this way:

    rs1.Close
    set rs = nothing
    rs2.Close
    set rs2 =nothing
    '.
    '.
    db.Close
    set db = nothing



    This steps should kill your current connection and clear memory
    Vlad



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

Featured