SqlShare.com Logo
 
Skip Navigation Links
Home
Video List
Events
Classes
About Us
Login / Register
Subscribe RSS Feed 

Takes Query Plan Analysis and Performance Monitoring to a New Level

Using OPTION RECOMPILE for Statement Level Recompilation

If you grew up with SQL Server you're probably familiar with WITH RECOMPILE, a flag we could add to a stored procedure that would force the entire procedure to recompile. It worked, but on a big stored procedure was expensive. OPTION RECOMPILE gives us the option to just fix the one statement that is causing the pain. It's not the only way to fix the problem, but its simple and reasonably elegant.

Duration:
3 mins 28 secs
Skill Level:
100
Rating:
4.46 out of 5
Publish Date:
July 27, 2010
Using OPTION RECOMPILE for Statement Level Recompilation You must be logged in to view this video.  
Bookmark and Share
 
1=Poor, 3=Good, 5=Excellent

About the Author

Image of Andy Warren
Andy Warren is a software trainer focusing on SQL Server, a member of the PASS Board of Directors, and a principal in this site - SQLShare.com.

References



Comments
Dana on 7/30/2010
I am beginner at SQL and I don't understand what situations I would use this in. Would like to have that gap filled although in general I appreciate these lessons as a means of figuring out what I need to investigate.

Anil Babu on 7/30/2010
its good

eliman on 7/30/2010
useful information

Diana Dee on 7/31/2010
Cool information!

Ron on 8/18/2010
You are one of the better presenters I've seen here. Nicely moderated.

Sam Schafer on 2/4/2011
Excellent examples. A picture is worth a thousand words...

Jean Daniel on 6/23/2012
good job



Must Be Logged In
 

How Do I Become a Video Author? |  Newsletter History

Copyright © Fourdeuce, Inc., 2005-2009. All Rights Reserved | Privacy Policy | Terms & Conditions