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 Administration (2000)
 CacheInsert/CacheRemove of stored procedures

Author  Topic 

ygeorge
Yak Posting Veteran

68 Posts

Posted - 2003-09-15 : 17:58:15
When I was monitoring caching activities of stored procedures on our production database, I noticed that there were alot of Cacheinsert/CacheRemove(but no Recompile) events with those written with dynamic SQL statements. Does it happen to all stored procedures containing dynamic SQL? Is it a bad thing? The performance of that server is okay now, but just wondering if it may go bad when I keep adding such stored procedures there.

Thanks in advance,
George

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2003-09-15 : 18:02:08
Dynamic sql is very bad for performance. That is why it is not recommended.

Tara
Go to Top of Page
   

- Advertisement -