Report based on Stored Procedure timing out

  • We found our issue. I was using the parameters directly in the body of the SP definition. Apparently there is a known issue with how paramaters are accessed and processed. I modified the stored procedure by declaring new variables in the body of the SP and setting them to them value of the passed parameter. Reduced execution time from within SQL Manager and provided the same response time from within the report.

    🙂

  • It is called Parameter Sniffing. You took the proper corrective action.

Viewing 2 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply