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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generate SP Execution Plan at server startup?

Status
Not open for further replies.

sarah2michelle

Technical User
Jul 18, 2005
12
US
I have a SP that takes about 90 seconds longer to run the first time every time after a reboot, the performance is much better after that, until the next reboot. I am assuming this is because the execution plan is stored in memory after the first use. Is there a way to make SQL generate the execution plan at startup, or something like that so that it doesn't take the extra time the first time the user runs it?
 
You could schedule the procedure to run each time the SQL Agent starts.

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top