Using SQL Server 2008, I have a simple stored procedure whose contents
DELETE FROM [ABC].[dbo].[LookUpPermissions] WHERE Code = @Code
In a recent code review, the database administrator said that I should “add the sniffing parameter”, which I believe means that I should consider the sniffing parameter. I have never done this in the past, and I have no performance issues with the query, so I think this is not necessary.
While I suggest that the answer might be preferable for users, would it be best practice to consider the sniffing option? Is it necessary if the stored procedure is called in a small data set, is used infrequently and does not have performance problems?
change
Is this only applicable to the parameters used in the WHERE clause, or, for example, you may need to consider all the parameters in the INSERT statement?
source share