13
Answers

timed out error

yesubabu k

yesubabu k

6y
744
1
SqlConnection con = new SqlConnection(connectionstring);
SqlCommand cmd = new SqlCommand(sqlQuery, con);
cmd.Connection.Open();
cmd.CommandTimeout = 999999999;
SqlDataAdapter sqlDA = new SqlDataAdapter(cmd);
sqlDA.Fill(dt);
cmd.Connection.Close();
 
 
Answers (13)