Quantcast
Channel: Louis Davidson : dynamic management objects
Browsing latest articles
Browse All 9 View Live

Image may be NSFW.
Clik here to view.

Automatic indexing is cool...plus something to tell you what indexes aren't used

Now, I will admit up front that I haven't technically tried out all of their bits and pieces of the following tool, but over the past week I have made a lot of use of some of the indexing suggestions...

View Article



Image may be NSFW.
Clik here to view.

Blogging the DMV's

Well, I am working on a project that is going to be a book on dynamic management views (and functions, but DMF is an interesting acronym, and objects, as in DMO, has a well known other meaning.  What I...

View Article

Image may be NSFW.
Clik here to view.

sys.dm_db_partition_stats

For the current database, gives you space oriented statistics for each partition of indexes (even if you only have one partion), like row count, page counts, etc. Resembles the sysindexes in previous...

View Article

Image may be NSFW.
Clik here to view.

sys.dm_db_file_space_usage

Give space usage of objects in tempdb (most likely this will be extended to more than just tempdb in a future edition of SQL Server.) Can be used to see how and why space is being used in Tempdb, on a...

View Article

Image may be NSFW.
Clik here to view.

sys.dm_db_index_usage_stats

This object gives statistics on how an index has been used to resolve queries. Most importantly it tells you the number of times a query was used to find a single row (user_seeks), a range of values,...

View Article


Image may be NSFW.
Clik here to view.

sys.dm_io_virtual_file_stats

Excellent dmv that shows, for each file that SQL Server uses for the databases, stats on how frequently the file has been used by the database. This is one of the primary dynamic management views I use...

View Article

Image may be NSFW.
Clik here to view.

sys.dm_exec_query_optimizer_info

Information about how queries have been optimized since the server has been restarted. Note that counters are only affected when there is some sort of optimization event, not on every query....

View Article

Image may be NSFW.
Clik here to view.

sys.dm_db_index_operational_stats

 This object provides very useful stats on how many times an index has been used, locked, waited on, etc. An index in this context can mean several things: a clustered index, heap, index, or a...

View Article


Image may be NSFW.
Clik here to view.

2008: Rebuilding a Heap

In 2005, rebuilding a table that was a heap (no clustered index) wasn't easy.  You could copy it to a different table, or you could add a clustered index and then drop it. In 2008, this is a far easier...

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images