I have come across something very strange and is not helping with my investigation of an issue.
I have a stored procedure and when I run it via an exec statement from Query Analyzer it takes 18 mins to complete.
I restored the database to how it was before this procedure was run but this time I put the exec statement in a job and set it to run every 5 mins. It only took 9 mins to run in here when looking at the Job History.
This is really confusing me now ? Which is correct and what would be the reason for the difference in time ?
I have a stored procedure and when I run it via an exec statement from Query Analyzer it takes 18 mins to complete.
I restored the database to how it was before this procedure was run but this time I put the exec statement in a job and set it to run every 5 mins. It only took 9 mins to run in here when looking at the Job History.
This is really confusing me now ? Which is correct and what would be the reason for the difference in time ?