Hi all,
I have a very interesting problem. I have created a stored proc, which when I run (through Query Analyzer) takes 25 secs. If I run the same query with the same parameters it is almost instantaneous. I have this condition in my sp, which when I remove it, speeds up my sp,
and isnull(time_stamp,0) <= @updateDate
but even if I leave it in my query the query executes very quickly.
Any ideas?
I have a very interesting problem. I have created a stored proc, which when I run (through Query Analyzer) takes 25 secs. If I run the same query with the same parameters it is almost instantaneous. I have this condition in my sp, which when I remove it, speeds up my sp,
and isnull(time_stamp,0) <= @updateDate
but even if I leave it in my query the query executes very quickly.
Any ideas?