Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
GeneralRe: Handling with multiple SQL-DataReader Pin
PIEBALDconsult10-Aug-09 7:03
mvePIEBALDconsult10-Aug-09 7:03 
AnswerRe: Handling with multiple SQL-DataReader Pin
PIEBALDconsult10-Aug-09 6:55
mvePIEBALDconsult10-Aug-09 6:55 
GeneralRe: Handling with multiple SQL-DataReader Pin
softwarejaeger10-Aug-09 7:20
softwarejaeger10-Aug-09 7:20 
GeneralRe: Handling with multiple SQL-DataReader Pin
N a v a n e e t h10-Aug-09 7:50
N a v a n e e t h10-Aug-09 7:50 
GeneralRe: Handling with multiple SQL-DataReader Pin
PIEBALDconsult10-Aug-09 8:20
mvePIEBALDconsult10-Aug-09 8:20 
GeneralRe: Handling with multiple SQL-DataReader Pin
N a v a n e e t h10-Aug-09 8:47
N a v a n e e t h10-Aug-09 8:47 
GeneralRe: Handling with multiple SQL-DataReader Pin
PIEBALDconsult10-Aug-09 9:03
mvePIEBALDconsult10-Aug-09 9:03 
GeneralRe: Handling with multiple SQL-DataReader Pin
N a v a n e e t h10-Aug-09 9:14
N a v a n e e t h10-Aug-09 9:14 
PIEBALDconsult wrote:
With what settings? How will the pool know what the user wants to connect to until asked?


My bad, you are correct. Pool will be initiated only when a connection is first opened.

PIEBALDconsult wrote:
I understand that happens at Close


You can call dispose as well. It happens at dispose too. Here is what MSDN says,

We strongly recommend that you always close the connection when you are finished using it so that the connection will be returned to the pool. You can do this using either the Close or Dispose methods of the Connection object, or by opening all connections inside a using statement in C#, or a Using statement in Visual Basic.

Smile | :)


GeneralRe: Handling with multiple SQL-DataReader Pin
PIEBALDconsult10-Aug-09 8:09
mvePIEBALDconsult10-Aug-09 8:09 
GeneralRe: Handling with multiple SQL-DataReader Pin
softwarejaeger10-Aug-09 19:38
softwarejaeger10-Aug-09 19:38 
AnswerRe: Handling with multiple SQL-DataReader Pin
senguptaamlan10-Aug-09 22:54
senguptaamlan10-Aug-09 22:54 
GeneralRe: Handling with multiple SQL-DataReader Pin
softwarejaeger11-Aug-09 2:19
softwarejaeger11-Aug-09 2:19 
QuestionGeneric question Pin
Peter Todd10-Aug-09 5:50
Peter Todd10-Aug-09 5:50 
AnswerRe: Generic question Pin
J4amieC10-Aug-09 6:03
J4amieC10-Aug-09 6:03 
GeneralRe: Generic question Pin
Luc Pattyn10-Aug-09 6:14
sitebuilderLuc Pattyn10-Aug-09 6:14 
GeneralRe: Generic question Pin
J4amieC10-Aug-09 6:59
J4amieC10-Aug-09 6:59 
AnswerRe: Generic question Pin
Luc Pattyn10-Aug-09 6:03
sitebuilderLuc Pattyn10-Aug-09 6:03 
AnswerRe: Generic question Pin
PIEBALDconsult10-Aug-09 6:17
mvePIEBALDconsult10-Aug-09 6:17 
GeneralRe: Generic question Pin
Luc Pattyn10-Aug-09 6:22
sitebuilderLuc Pattyn10-Aug-09 6:22 
GeneralRe: Generic question [modified] Pin
PIEBALDconsult10-Aug-09 9:35
mvePIEBALDconsult10-Aug-09 9:35 
AnswerRe: Generic question Pin
DaveyM6910-Aug-09 7:00
professionalDaveyM6910-Aug-09 7:00 
GeneralRe: Generic question Pin
PIEBALDconsult10-Aug-09 12:59
mvePIEBALDconsult10-Aug-09 12:59 
GeneralRe: Generic question Pin
DaveyM6910-Aug-09 21:25
professionalDaveyM6910-Aug-09 21:25 
GeneralRe: Generic question Pin
PIEBALDconsult10-Aug-09 22:02
mvePIEBALDconsult10-Aug-09 22:02 
QuestionLock(This) Pin
jpk42010-Aug-09 5:06
jpk42010-Aug-09 5:06 

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.