I have a fairly complex query with one integer type parameter. When I run it as a prepared statement, it takes ~50 seconds to run. When I run the same statement in query analyzer, it takes less than 1 second.
My theory is that the execution plan is somehow different when it's running as a prepared statement. Is there any way to determine the execution plan used for a prepared statement?
Thanks for your help!
Jenica Humphreys
TealWren
My theory is that the execution plan is somehow different when it's running as a prepared statement. Is there any way to determine the execution plan used for a prepared statement?
Thanks for your help!
Jenica Humphreys
TealWren