November 21, 2012 at 6:44 am
Hi all,
Since there are number of DMV's present and there is no proper presentation on it. So if suppose some has to see the number of DMV's present in SQL Server, then how to see it.
November 21, 2012 at 6:52 am
the # depends on the SQL server version, and in some cases, the Service Pack version as well.
easiest way is to simply look in SSMS Object Explorer>>Expad Server>>System Databases>>master>>Views>>System Views
Or via TSQL:
select * from master.sys.all_views where schema_id=4
on my SQL2005, i have 264 dmv's in that list.
on my SQL2008, i have 334 dmv's in that list.
on my SQL2012, i have 379 dmv's in that list.
Lowell
November 21, 2012 at 7:18 am
Thanks Lowell. I exceuted your query and found some of the column name not preceding with dm_...... . So is that OK?
November 21, 2012 at 7:26 am
Shadab Shah (11/21/2012)
Thanks Lowell. I exceuted your query and found some of the column name not preceding with dm_...... . So is that OK?
well you can filter it from there...I just wanted to demo how to find all the system views you should be aware of.
The dm_ is a naming convention to help draw your attention,but many of the other views that appear on that list are worthy of a DBA notice, regardless of whether the name starts with dm or not.
Lowell
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply