Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Connection pooling

Reply
Thread Tools

Connection pooling

 
 
=?Utf-8?B?VmFtJHk=?=
Guest
Posts: n/a
 
      11-24-2004
Hi all

Iam working on a web based project using asp.net and sql server 2000. I have
written stored procedures whenever i want to interact with data base and in
connection string i had put min pool size=1;max pool size=500.

And in each page load one stored procedure will get executed as iam
capturing the url and inserting into data base. so for each insert one
process is getting created in SQL Server and the process is going to sleep
mode and its staying back till i close the browser. and rest of stored
procedure process is getting created and killing once the work is done. once
i close the browser all process which are there are getting killed. But why
the status is going to sleep mode all the time is my question ever though iam
closing the connection and disposing.

Thanks is advance,
Vamsi
 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      11-24-2004
First, my personal preference is to leave default values unless you have a
very good reason do to so (IMO 500 is really really high).

With pooling, the connection is not really closed. Instead it is kept so
that it is already available for someone else...

Patrice


--

"Vam$y" <> a écrit dans le message de
news:B9305D75-5285-463A-AE21-...
> Hi all
>
> Iam working on a web based project using asp.net and sql server 2000. I

have
> written stored procedures whenever i want to interact with data base and

in
> connection string i had put min pool size=1;max pool size=500.
>
> And in each page load one stored procedure will get executed as iam
> capturing the url and inserting into data base. so for each insert one
> process is getting created in SQL Server and the process is going to sleep
> mode and its staying back till i close the browser. and rest of stored
> procedure process is getting created and killing once the work is done.

once
> i close the browser all process which are there are getting killed. But

why
> the status is going to sleep mode all the time is my question ever though

iam
> closing the connection and disposing.
>
> Thanks is advance,
> Vamsi



 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection Pooling, Dispose/Close/Using =?Utf-8?B?UGllcnNvbiBD?= ASP .Net 9 11-26-2008 02:58 PM
Connection Pooling and the data access application block Edward W. ASP .Net 5 12-15-2004 04:41 AM
Re: SqlConnection and connection pooling William \(Bill\) Vaughn ASP .Net 0 11-14-2003 07:27 PM
connection pooling error Chris Szabo ASP .Net 6 08-19-2003 07:19 PM
connection pooling Trevor Hartman ASP .Net 2 07-28-2003 07:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57