output-parameter

ADO.NET calling T-SQL Stored Procedure causes a SqlTimeoutException

一个人想着一个人 提交于 2019-11-26 15:48:00
问题 I have a T-SQL stored procedure with the signature CREATE PROCEDURE MyProc @recordCount INT OUTPUT @param1 INT ... When executed directly in Sql Server the procedure runs in under 5 seconds, returning a few result sets amounting to about 100 rows in total. Calling this procedure using the ADO.NET SqlDataAdapter.Fill method to populate a Dataset causes a SqlTimeoutException on the SqlCommand after 3 minutes (the specified timeout interval). Changing the stored procedure so that it no longer