Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Adocon.open
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adocon.open

 Post Reply Post Reply
Author
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Topic: Adocon.open
    Posted: 21 February 2003 at 7:15am

When developing ASP software, is it best to recycle one adocon connection throughout the whole page, or is it better to open then close, open the close throughout the page?

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2003 at 8:00am
recycle
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2003 at 8:21am
and make sure to close it at the end of the page
Contribute to the working anarchy we fondly call the Internet
Back to Top
dolby71 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 October 2002
Location: Israel
Status: Offline
Points: 203
Post Options Post Options   Thanks (0) Thanks(0)   Quote dolby71 Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2003 at 9:26am
Recycle of course!
If you don't close it later, after couple of times thr DB may crash and corrupt...
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2003 at 11:05am

It's best to only have one connection to the db, also if you can use the same recordset through out the page, by closing it after each query, but don't drop the object it will also speed up the processing of the page quite allot.

but DON'T forget to release all objects at the end of the page or you will slowly use up all your sites allocated memory and your site will get slower and slower till the server resets itself.

Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2003 at 12:13pm

Thanks guys!  youve helped me a lot

Ill post here when my project is done, im sure youll want to see it ;)  Should be good fun

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.