Skip to main content
Tweeted twitter.com/StackDBAs/status/818717705457045504
added details from comments by the OP
Source Link
Hannah Vernon
  • 70.5k
  • 22
  • 177
  • 321

After clearing the plan cache on SQL Server, how do I regenerate execution plans for stored procedures without executing the stored procedures themselves?

When I updated statistics this morning, one of my stored procedures was running really sluggishly. Per some google-fu, I found that clearing the plan cache can fix the issue - and it did. However, if I have to do this again, I'd like to avoid the performance hit from regenerating the plans while a user is waiting for a response.

Version/edition of SQL Server is 2016 Enterprise.

After clearing the plan cache on SQL Server, how do I regenerate execution plans for stored procedures without executing the stored procedures themselves?

Version/edition of SQL Server is 2016 Enterprise.

After clearing the plan cache on SQL Server, how do I regenerate execution plans for stored procedures without executing the stored procedures themselves?

When I updated statistics this morning, one of my stored procedures was running really sluggishly. Per some google-fu, I found that clearing the plan cache can fix the issue - and it did. However, if I have to do this again, I'd like to avoid the performance hit from regenerating the plans while a user is waiting for a response.

Version/edition of SQL Server is 2016 Enterprise.

improved readability / simplified title
Source Link
ypercubeᵀᴹ
  • 98.6k
  • 13
  • 215
  • 305

I clearedAfter clearing the plan cache on SQL Server 2016 Enterprise. How, how do I regenerate execution plans for stored procedures without executing the stored procedures themselves?

Version/edition of SQL Server is 2016 Enterprise.

I cleared the plan cache on SQL Server 2016 Enterprise. How do I regenerate execution plans for stored procedures without executing the stored procedures themselves?

After clearing the plan cache on SQL Server, how do I regenerate execution plans for stored procedures without executing the stored procedures themselves?

Version/edition of SQL Server is 2016 Enterprise.

How can Ito regenerate execution plans for stored procedures after clearing the plan cache?

If I clearcleared the plan cache on SQL Server 2016 Enterprise, how can. How do I regenerate execution plans for stored procedures without executing the stored procedures themselves?

How can I regenerate execution plans for stored procedures after clearing plan cache?

If I clear the plan cache on SQL Server 2016 Enterprise, how can I regenerate execution plans for stored procedures without executing the stored procedures themselves?

How to regenerate execution plans after clearing the plan cache?

I cleared the plan cache on SQL Server 2016 Enterprise. How do I regenerate execution plans for stored procedures without executing the stored procedures themselves?

Source Link
Loading