Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to avoid precompile

Status
Not open for further replies.

bheemsen

Programmer
May 9, 2002
22
US
Hi Gurus,

I found that whenever my procedure is called, it is precompiled. Is there any way I can tell SQL Server not to precompile a particular stored procedure ?

I appreciate your responses.

thanx..
-Bheemsen
 
Not that I know of. It has to be run through the precompiler in order for it to be stored in the procedure cache. You could dump the cache, but that's like setting fire to your dog because it has fleas (high temperature being a sure way to kill fleas).

When we are forced to dump cache on our production servers (because of a cluster failover or a reboot), the app slows down noticeably for about half a day until the cache fills back up.

Chip H.
 
If you put WITH RECOMPILE in your sproc statement, it will not cache it. It will be recompiled each execution.

Chris.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top