C
chrisdepalma
I call a stored procedure that returns two select statements.
in query analylzer, it takes 1 second to do the query.
The following code takes 60 seconds in dot net 1.1. It seems to me
that the dot net runtime sucks. Any ideas?
SqlConnection con = GetConnection();
con.Open();
SqlCommand cm = new SqlCommand(PstrSQL,con);
cm.CommandTimeout = 0;
cm.CommandType= CommandType.Text;
SqlDataAdapter da = new SqlDataAdapter(cm);
DataSet ds = new DataSet();
da.Fill(ds);
da.Dispose();
cm.Dispose();
con.Close();
con.Dispose();
return ds;
in query analylzer, it takes 1 second to do the query.
The following code takes 60 seconds in dot net 1.1. It seems to me
that the dot net runtime sucks. Any ideas?
SqlConnection con = GetConnection();
con.Open();
SqlCommand cm = new SqlCommand(PstrSQL,con);
cm.CommandTimeout = 0;
cm.CommandType= CommandType.Text;
SqlDataAdapter da = new SqlDataAdapter(cm);
DataSet ds = new DataSet();
da.Fill(ds);
da.Dispose();
cm.Dispose();
con.Close();
con.Dispose();
return ds;