Reputation: 151
When using ExecuteReader(timeout) method to execute a SP, does it terminate process and close connection?
Upvotes: 0
Views: 350
Reputation: 3025
System.Data.Common.DbCommand cmd = null;
// init command
System.Data.Common.DbDataReader dbReader = cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection);
Upvotes: 1