How to add CommandTimeout to connection string in web.config?
I tried:
<add name="ConnectionString" connectionString="Data Source=;Initial Catalog=;Persist Security Info=True;User ID=sa;Password=sa@123;Connect Timeout=200" providerName="System.Data.SqlClient"/> </connectionStrings>
and this:
<add name="MyProject.ConnectionString" connectionString="Data Source=127.0.0.1;Initial Catalog=MyDB;Persist Security Info=True;CommandTimeout=60;User ID=sa;Password=saPassw0rd" providerName="System.Data.SqlClient" />
but he did not work for me.
thanks
web-config timeout connection-string connection-timeout
user833102
source share