Is there a way to find out the size of a SQL Server database using WMI from .NET?
I've had a look at the WMI documentation but I'm not clear how I'd be able to locate that information.
We're using SQL Server 2008.
-dave
You can access this property via Microsoft.SqlServer.Management.Smo. Give this a try: MSDN
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With