So, here's a little weird ... I have a stored process that takes 40 seconds. I copy the contents of the saved proc to a new request window, change 2 input parameters (which are both dates), so they are declared and set, and start the request. This is basically an instant execution in 1 second. The only difference is that the stored proc accepts 2 dates as parameters.
Has anyone understood what could happen?
(I am running SQL Server 2005)
sql-server sql-server-2005
Withakay
source share