From a9c8fbf6cbf3b8e622cdffbcb1c60263da6047d6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 24 Mar 2018 19:56:48 -0400 Subject: [PATCH] param sniffing on user search proc --- src/Sql/dbo/Stored Procedures/User_Search.sql | 1 + util/Setup/DbScripts/2018-03-21_00_AdminPortal.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Sql/dbo/Stored Procedures/User_Search.sql b/src/Sql/dbo/Stored Procedures/User_Search.sql index 9e4657006c..54cd850156 100644 --- a/src/Sql/dbo/Stored Procedures/User_Search.sql +++ b/src/Sql/dbo/Stored Procedures/User_Search.sql @@ -2,6 +2,7 @@ @Email NVARCHAR(50), @Skip INT = 0, @Take INT = 25 +WITH RECOMPILE AS BEGIN SET NOCOUNT ON diff --git a/util/Setup/DbScripts/2018-03-21_00_AdminPortal.sql b/util/Setup/DbScripts/2018-03-21_00_AdminPortal.sql index a3f05eec49..880d85cbf9 100644 --- a/util/Setup/DbScripts/2018-03-21_00_AdminPortal.sql +++ b/util/Setup/DbScripts/2018-03-21_00_AdminPortal.sql @@ -8,6 +8,7 @@ CREATE PROCEDURE [dbo].[User_Search] @Email NVARCHAR(50), @Skip INT = 0, @Take INT = 25 +WITH RECOMPILE AS BEGIN SET NOCOUNT ON