Avatar of MD SHAMIM
MD SHAMIM

asked on 

query optimization

how could i improve below query performance .in test server it takes more than 2 minutes .In prod busy server( millions of rows ) it will take more time to execute .any good thoghts would help .

DECLARE @Date varchar(10) = '3/16/2017';
DECLARE @Client varchar(50) = 'logix';
SELECT count(*) AS 'SSN Checks'
FROM vwEvent
WHERE EventType = 'SigningPing'
AND EventDate = @Date
AND EventParam4 = @Client
AND EventParam2 like '%/NameSSN/%'


thanks all in advance
Microsoft SQL Server 2008

Avatar of undefined
Last Comment
MD SHAMIM

8/22/2022 - Mon