SqlCommand command = new SqlCommand(qry, conn);
command.CommandTimeout = 60 * 60 * 2; //2 hours
By Default CommandTimeout is 60 seconds. If the query is taking more than 60seconds, sqlcommand exits with an error.
command.CommandTimeout = 60 * 60 * 2; //2 hours
By Default CommandTimeout is 60 seconds. If the query is taking more than 60seconds, sqlcommand exits with an error.