Home Forums SQL Server 2008 T-SQL (SS2K8) Where clause Integer Greater than RE: Where clause Integer Greater than
Davebhoy
SSC Eights!
Points: 858
More actions
July 22, 2014 at 7:40 am
#1731424
Parameter sniffing was the issue alright.
I added a parameter to the query and because it's run from a main SP I moved the first SQL statement to the main SP and then passed the @CutOFFTid to the sub-SP.
Thanks guys.
Dave