M
Mantvydas
Hello,
I've got a webpage, done with visual studio express web developer, which
shows the result of a store procedure.
I've got a problem, that sometimes my sql server 2000 replies with the
results of the stored procedure quickly enough, but sometimes it's busy and
the CommandTimeout of 60000 is not enough. The webserver brings me a logon
prompt after quite a while as if I'm not logged on to the remote server, but
not the results. Do you know of any other ways to prolong timeout and wait
up for the result?
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = mySQLCommand;
DataSet ds = new DataSet();
myConnection.Open();
da.SelectCommand.CommandTimeout = 60000;
da.Fill(ds, "spRun");
Regards,
Mantvydas
I've got a webpage, done with visual studio express web developer, which
shows the result of a store procedure.
I've got a problem, that sometimes my sql server 2000 replies with the
results of the stored procedure quickly enough, but sometimes it's busy and
the CommandTimeout of 60000 is not enough. The webserver brings me a logon
prompt after quite a while as if I'm not logged on to the remote server, but
not the results. Do you know of any other ways to prolong timeout and wait
up for the result?
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = mySQLCommand;
DataSet ds = new DataSet();
myConnection.Open();
da.SelectCommand.CommandTimeout = 60000;
da.Fill(ds, "spRun");
Regards,
Mantvydas