Hi!
My problem is the following. If I run a piece of SQL code as part of a stored procedure, it takes 50 seconds to complete. But when running directly from the Query Analyzer, it's only 13 seconds. What's more, if it is embedded in a stored procedure within an EXEC '...' statement, it's only 14 seconds!!!
Does anyone have any idea on what's going on?
Thanks, Iker
My problem is the following. If I run a piece of SQL code as part of a stored procedure, it takes 50 seconds to complete. But when running directly from the Query Analyzer, it's only 13 seconds. What's more, if it is embedded in a stored procedure within an EXEC '...' statement, it's only 14 seconds!!!
Does anyone have any idea on what's going on?
Thanks, Iker