Database size via WMI in .NET.

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

+5
source share
2 answers

You can access this property through Microsoft.SqlServer.Management.Smo. Try it: MSDN

+2
source

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, -, , - .

0

All Articles