I am creating Windows Application and using System.Data.SqlClient.SqlConnection object
SqlConnection targetDatabaseConnection = new SqlConnection(ConnectionString);
Following is the connection string
Data Source=.;Initial Catalog=TestBCP_12;User ID=sa;Password=sa;Min Pool Size=100; Max Pool Size=100; Decr Pool Size=100; Incr Pool Size=100;
Getting error with the following two settings
Decr Pool Size=100; Incr Pool Size=100;
I know all the sizes are 100 , is it the cause of exception if yes? , the message is not reverent to the error .
I read the following article and implemented based on it
http://www.codeproject.com/Articles/17768/ADO-NET-Connection-Pooling-at-a-Glance
Found the answer that this is not possible in SQL directly so asked new question
How to achieve functionlity i.e. controlling "Incr Pool Size" or "Decr Pool Size" while establishing connection to SQL? similar to ORACLE
to find other possible ways to achieve it.
Since you are using SqlConnection, it does not support
Decr Pool SizeorIncr Pool Size. This property is supported with OracleConnectionYou may check this article: Connection Pooling in DotNet
From the article: