Home Forums SQL Server 2008 T-SQL (SS2K8) Prevent Stored Procedure using bad execution plan RE: Prevent Stored Procedure using bad execution plan

  • Jonathan AC Roberts (11/26/2015)


    If it is parameter sniffing causing the problem then you can just alter the stored procedure to copy the parameters passed in into ones created within the SP.

    Which may work or may result in other problems. It's not a guaranteed fix. (Well, it'll fix the parameter sniffing, but it can cause other performance problems due to the lack of parameter sniffing)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass