Geek City: sp_cacheobjects for SQL Server 2012

Posted by Kalen Delaney on SQL Blog See other posts from SQL Blog or by Kalen Delaney
Published on Thu, 01 Aug 2013 00:31:00 GMT Indexed on 2013/08/02 15:53 UTC
Read the original article Hit count: 235

Filed under:
|
In a post about 4 1/2 years ago , I gave you my version of a replacement for the old pre-2005 pseudotable syscacheobjects . I called it sp_cacheobjects and created it as a view in the master database. With the sp _ prefix, the view can be accessed from any database. When testing this on SQL Server 2012, I noticed that I almost always got a lot more rows back than I was expecting. Even when I added a WHERE clause to limit the database to only the database I was working in, I STILL got way to many...(read more)

© SQL Blog or respective owner

Related posts about metadata

Related posts about plan cache