Forum Moderators: open

Message Too Old, No Replies

Database Connection Close Test

Is there an easy way to test if the database connection is being closed?

         

webworker us

9:04 pm on Jul 13, 2005 (gmt 0)

10+ Year Member



Hi All.

I am currently working to revamp my intranet, and am having a bit of trouble with my databases closing. I am pretty sure its just me not getting all of them closed at the end, and I was wondering if there was an easy way to see which file wasn't closing its connection.

I am currently using Baby Web Server, but if anybody has any better free suggestions, I would happily accept. (I'm not an IIS fan becuase my permissions aren't working, yet another of my shortcomings)

Thanks

Casey

mattglet

10:47 pm on Jul 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What are you using as a database? Access, SQL Server?

Easy_Coder

11:45 pm on Jul 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



if dbConnObject.adStateOpen = 1 then
'db connection is open
else
'db connection is not open
end if

webworker us

11:59 am on Jul 14, 2005 (gmt 0)

10+ Year Member



Access

Easy_Coder

1:09 pm on Jul 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My earlier code is foobar... should read:

if dbConnObject.State = adStateOpen then
'dbconnection is open
else
'db connection is not open
end if

webworker us

3:48 pm on Jul 14, 2005 (gmt 0)

10+ Year Member



Ok Cool thanks. I will add it to the bottom of all my pages.

Casey