Hello,
I have a stored procedure with a number of input parameters on SQL Server 2000. This stored procedure is accessing quite large tables and returning a dataset.
When I run this procedure on via SQL server Management Studio, the procedure is finished within a second, either with or without results.
When I run the same procedure from a VB.Net application, it takes ages to get the response back, if I don't change the commandtimeout property I even get timeout errors!
I've checked on SQL server, but nothing strange about locking or something like that can be seen.
Does anyone knows what is causing this delay and what can be done about it?
Thanks,
André
I have a stored procedure with a number of input parameters on SQL Server 2000. This stored procedure is accessing quite large tables and returning a dataset.
When I run this procedure on via SQL server Management Studio, the procedure is finished within a second, either with or without results.
When I run the same procedure from a VB.Net application, it takes ages to get the response back, if I don't change the commandtimeout property I even get timeout errors!
I've checked on SQL server, but nothing strange about locking or something like that can be seen.
Does anyone knows what is causing this delay and what can be done about it?
Thanks,
André