What are the rules to implement connection pooling?
Answer / Kushal Sharda
The rules to implement connection pooling in ADO.NET are:
1. Connection Pooling must be enabled by setting the ConnectionString property of a connection object.
2. The minimum and maximum number of connections that can be maintained by the pool should be defined using the MinPoolSize and MaxPoolSize properties respectively.
3. The time-out value for idle connections can be set using the Connect Timeout property.
4. It's essential to release connections back to the pool after use using the Close() method.
5. To avoid connection exhaustion, it's advisable to open and close connections only when necessary.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is sql command in ado net?
how to keep track of index in listbox items.
Difference between OLEDB Provider and SqlClient ?
What are the data access namespaces in .NET?
what is different between SqlCommand object and Command Behaviour Object
What is variable view?
Why do we need ado.net?
what is the syntax code for oldb to connect oracle
what are the two key events for the sql connection class? explain the differnce between the two.
what is a dataset?
What is the difference between Response.Expires and Reponse.ExpiresAbsolute?
Differnces between oracle 9i and sql server?
2 Answers College School Exams Tests, Microsoft,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)