Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Cached Execution Plans

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-02-19 : 23:49:51
Aaron writes "Hi SQLTeam,

I recall reading somewhere that using conditional statements in stored procedures can have an adverse affect on perfmormace. Say you have Proc1 which has a conditional with branch A and branch B. If Proc1 runs the first time with branch A, then execution plan is cached - but only for branch A. If it later runs branch B then you get non-optimal performance issues. Is this true? And could you better explain the process? THANKS!

Aaron"
   

- Advertisement -