Is there a way to find out the size of a SQL Server database using WMI from .NET?
I looked at the WMI documentation , but I do not understand how I can find this information.
We are using SQL Server 2008.
-dave
You can access this property through Microsoft.SqlServer.Management.Smo. Try it: MSDN
A bit of a tangent answer, but whenever I want to play with WMI, I first quickly scan through Scriptomatic , the Microsoft WMI browser.
SQL 2005, WMI, -, , - .