navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Closing databases

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Closing databases
Page: [1]
 
hzarabet

 

Posts: 1540
From: New Milford CT USA
Status: offline

 
Closing databases - 3/31/2001 22:16:00   
I have just installed an ad rotator on my site. All asp code. It is freeware so there isn't much support. I have been reading their bulletin board and there are complaints of leaking resources. Pages were named where databases weren't closed or improperly closed. I went in and closed some pages on my site.

Here is my question. Is there any damage done by putting a closing statement on a page that doesn't need it? If I wasn't sure about the need for a closing on a page, I put it in "just in case".

<%
oRS.Close
Set oRS = Nothing
oConn.Close
Set oConn = Nothing
%>

Thanks guys

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada

Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Closing databases - 3/31/2001 22:46:00   
You may get an object error if you attempt to close an object that doesnt exist, unless you state "On error resume next" to prevent (hide) errors

(in reply to hzarabet)
hzarabet

 

Posts: 1540
From: New Milford CT USA
Status: offline

 
RE: Closing databases - 3/31/2001 22:53:00   
Nope, no errors. It is running fine. Just forget about it?

------------------
www.Signingshotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada


(in reply to hzarabet)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Closing databases
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts