Hi,
I have a store procedure wich takes more than 1 min. to process. But if I declare the variables as the parameters specifications and run it as a script in query analyser, it tooks less than 5 seg.s.
well, the sql-script is the same, the variables used at sql-script are the same....
what can be the difference so that it took more time to process a sp than a script ?
where can i start to invistage ?
Thanks, Almir.
I have a store procedure wich takes more than 1 min. to process. But if I declare the variables as the parameters specifications and run it as a script in query analyser, it tooks less than 5 seg.s.
well, the sql-script is the same, the variables used at sql-script are the same....
what can be the difference so that it took more time to process a sp than a script ?
where can i start to invistage ?
Thanks, Almir.