Click here to Skip to main content
15,910,009 members
Home / Discussions / Database
   

Database

 
QuestionSQL Connection Pin
nitin_ion8-Jun-06 1:42
nitin_ion8-Jun-06 1:42 
AnswerRe: SQL Connection Pin
Paul Brower8-Jun-06 1:48
Paul Brower8-Jun-06 1:48 
GeneralRe: SQL Connection Pin
nitin_ion8-Jun-06 1:52
nitin_ion8-Jun-06 1:52 
AnswerRe: SQL Connection Pin
SeMartens8-Jun-06 1:50
SeMartens8-Jun-06 1:50 
AnswerRe: SQL Connection Pin
Colin Angus Mackay8-Jun-06 4:33
Colin Angus Mackay8-Jun-06 4:33 
AnswerRe: SQL Connection [modified] Pin
Rob Graham8-Jun-06 5:03
Rob Graham8-Jun-06 5:03 
GeneralRe: SQL Connection [modified] Pin
nitin_ion8-Jun-06 17:36
nitin_ion8-Jun-06 17:36 
GeneralRe: SQL Connection Pin
Rob Graham9-Jun-06 5:23
Rob Graham9-Jun-06 5:23 
nitin_ion wrote:
When i connect to database the pool size goes to 2 irrespective of how many times i call the function and whether i open and close the connection
But as soon as i closes the application the pool goes to 0

Looks like its working correctly to me. On the first use, the connection pool is initialized to the minimum (2) and stays there (since you are only using one connection. The pool is not destroyed until your app exits... How are you determining the pool's connection count?
You can cause connections not in use to be removed by setting the "Connection Lifetime" parameter in your connection string to the number of seconds after which the connection should be reclaimed (NET2.0)
It defaults to 0 which meens infinite lifetime.

GeneralRe: SQL Connection Pin
nitin_ion9-Jun-06 17:53
nitin_ion9-Jun-06 17:53 
Questionoptimize this query Pin
smita_roy8-Jun-06 0:18
smita_roy8-Jun-06 0:18 
AnswerRe: optimize this query Pin
albCode8-Jun-06 0:50
albCode8-Jun-06 0:50 
GeneralRe: optimize this query Pin
smita_roy8-Jun-06 0:51
smita_roy8-Jun-06 0:51 
GeneralRe: optimize this query Pin
Colin Angus Mackay8-Jun-06 1:02
Colin Angus Mackay8-Jun-06 1:02 
GeneralRe: optimize this query Pin
smita_roy8-Jun-06 1:25
smita_roy8-Jun-06 1:25 
AnswerRe: optimize this query Pin
Chris Meech8-Jun-06 3:43
Chris Meech8-Jun-06 3:43 
AnswerRe: optimize this query Pin
Stephan Samuel8-Jun-06 11:09
Stephan Samuel8-Jun-06 11:09 
QuestionCreate sql server users and groups using SQL statement Pin
miceisland7-Jun-06 19:56
miceisland7-Jun-06 19:56 
AnswerRe: Create sql server users and groups using SQL statement Pin
Colin Angus Mackay7-Jun-06 22:20
Colin Angus Mackay7-Jun-06 22:20 
GeneralRe: Create sql server users and groups using SQL statement Pin
miceisland7-Jun-06 22:26
miceisland7-Jun-06 22:26 
AnswerRe: Create sql server users and groups using SQL statement Pin
Eric Dahlvang8-Jun-06 3:10
Eric Dahlvang8-Jun-06 3:10 
QuestionWrite to database problem Pin
my_btr7-Jun-06 18:59
my_btr7-Jun-06 18:59 
AnswerRe: Write to database problem Pin
S Douglas25-Jul-06 23:00
professionalS Douglas25-Jul-06 23:00 
QuestionDataReader Pin
md_refay7-Jun-06 9:24
md_refay7-Jun-06 9:24 
AnswerRe: DataReader Pin
Felipe Dalorzo7-Jun-06 10:29
Felipe Dalorzo7-Jun-06 10:29 
QuestionSQL: Count different product from diffrent suppliers Pin
zrocb817-Jun-06 6:51
zrocb817-Jun-06 6:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.