13
Answers

timed out error

Photo of yesubabu k

yesubabu k

7y
770
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)