Can you explain how to enable and disable connection pooling?

Can you explain how to enable and disable connection pooling?

Set Pooling=true. However, it is enabled by default in .NET.

To disable connection pooling set Pooling=false in connection string if it is an ADO.NET Connection.

If it is an OLEDBConnection object set OLEDB Services=-4 in the connection string.

Can you explain how to enable and disable connection pooling?

To enable connection pooling :
SqlConnection myConnection = new SqlConnection(@"Data Source=(local)\SQLEXPRESS;Initial Catalog=TEST;Integrated Security=SSPI;");

This has connection pooling on by default.

To disable connection pooling:
SqlConnection myConnection = new SqlConnection(@"Data Source=(local)\SQLEXPRESS;Initial Catalog=TEST;Integrated Security=SSPI;Pooling=false;");

What is Validation Control in ASP.NET?
ASP.NET - Validation Control in ASP.NET - The validation control is used to implement page level validity of data entered in the server controls....
Validation types supported by ASP.NET
ASP.NET - Validation types supported by ASP.NET - The RequiredFieldValidator control forces the input control a required field....
Steps to use Validation Control - ASP.NET
ASP.NET - Steps to use Validation Control - Draw a validation control on a Web form...
Post your comment