how to set the query timeout from SQL connection string

No. It’s per command, not per connection.

Edit, May 2013

As requested in comment:

  • SQLCommand.CommandTimeout for command execution
  • There is no matching SQLConnection property (the questions says not the SqlConnection.ConnectionTimeout property

Some more notes about commands and execution time outs in SQL Server (DBA.SE).
And more SO stuff: What happens to an uncommitted transaction when the connection is closed?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)