Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 28th, 2008, 05:52 AM
Authorized User
 
Join Date: Nov 2005
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default Webpage with DB conection make SQL OVERFLOW

Hi,

I am not sure if my question whould be here or in a SQL forum. So sorry if it is not here.

I have created a lot of pages in ASP using conection to the Database using ODBC (the DB is an SQL server)
Now I have noticed that sometime the network is blocked and when I see the mem use of the SQLserver it is as high as 2GB.
By killing the service the network goes normal again.

Now I am sure that some pages don´t have the next code at the end of the code:

rs.close
Set rs=Nothing
Set Conn=Nothing

Is this causing that t he SQL keeps pumping up the memory? I thought that MS would kill any copnection after x minutes (mine is set at 5)
Or is it my fualt and should I check every code to be sure that thes lines are present.

Any help is welcome!!!!!!

Johny


 
Old March 28th, 2008, 07:27 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hello,

You should never, never, never leave your database connections open under the assumption that they will be closed at some point by ASP because this can lead to Memory Leaks which, I imagine, is causing your problem. Go back through your site and physically close the connections to your database.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old March 28th, 2008, 07:30 AM
Authorized User
 
Join Date: Nov 2005
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thx dparsons,

i have started already checking all the pages. I thought so that that was the problem.....
Thx again for confirming my thoughts about this problem!


 
Old March 28th, 2008, 07:30 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

No problem! =]

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
vb conection to SQL db josmith2 ADO.NET 6 April 27th, 2007 08:39 AM
conection between Express Server and VB ashishprem Pro VB Databases 0 January 23rd, 2007 07:41 AM
could smb help to make run the DB on a hoster? fewer ASP.NET 2.0 Basics 3 December 3rd, 2006 06:52 PM
How to make insert statments for current db method Access VBA 8 March 23rd, 2005 10:47 PM
access db to sql server db mikersantiago Classic ASP Basics 4 November 16th, 2004 03:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.