Results 1 to 4 of 4

Thread: Connection error

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 1999
    Posts
    50

    Exclamation

    When Connected to a Database with ADO, and using a DSN, The database Times out and then can not be opened again Until My IIS Server resets the database after 3 minutes. It acts like the Connection is never closed.

    My last ASP Lines are

    rsProducts.close
    DBObj.close

    Anyone have any Ideas as to how stop this from happening

    Thanks in Advance
    Spyder

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    I dunno!

    Try adding:

    Set rsProducts = Nothing
    Set DBObj = Nothing

    after closing them.

    Mark
    -------------------

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 1999
    Posts
    50

    Unhappy

    I also have that in My code and it seems to make no Difference. I have tried with and without the Nothing Lines. Still the Same thing.

    Anyone else have any Idea?

    Spyder

  4. #4
    Guest
    Perhaps the server is keeping the db locked for some reason...you know...the way a program locks a file when you're editing it.

    There's a NT4 server I use that does this every so often. I assume this is the reason because the same server sometimes locks my asp files and when I try to save them I get a permission denied error coz it thinks the file is still open by someone else.

    I don't know the cause of this happening. Try messsin around with IIS's settings and see if it does put a read-lock on files when it's using them...there might be a setting that keep sthe file locked for a short time afterwards?

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