| [MS] Eric Yang 2002-08-06, 9:23 pm |
| Dear Nicky,
There is a CommandTimeout property in the SqlCommand. It means the time (in
seconds) to wait for the command to execute. The default is 30 seconds.
Please increase the value of this property. You can also explicitly setting
the CommandTimeout to 0 to test. (A value of 0 indicates no time limit)
The following is an example. 'sp_delay' indicates the store procedure which
needs to be executed.
m_da.SelectCommand.CommandTimeout=0;
m_da.SelectCommand.CommandType=CommandType.StoredProcedure;
m_da.SelectCommand.CommandText="sp_delay";
m_da.Fill(m_ds, "Products");
Sincerely,
Eric Yang [MS]
Microsoft Online Support Engineer
Please do not send email directly to this alias. This is our online
account name for newsgroup participation only.
This posting is provided 'AS IS' with no warranties, and confers no rights.
Get Secure! - www.microsoft.com/security
|