Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 28th, 2008, 05:52 AM
Authorized User
 
Join Date: Nov 2005
Location: , , Spain.
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


Reply With Quote
  #2 (permalink)  
Old March 28th, 2008, 07:27 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
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
================================================== =========
Reply With Quote
  #3 (permalink)  
Old March 28th, 2008, 07:30 AM
Authorized User
 
Join Date: Nov 2005
Location: , , Spain.
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!


Reply With Quote
  #4 (permalink)  
Old March 28th, 2008, 07:30 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
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
================================================== =========
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:13 AM.


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