blog.powershell.no

On Windows PowerShell and other admin-related topics

PowerShell script to retrieve free space in MSDE 2000 database

This week I had the need to automate reporting of available free space in a MSDE 2000 database due to the 2 GB database limit being nearly reached.

I wrote a PowerShell script which uses the SQL Server 2008 Management Studio Express to retrieve the amount of free space in the specified database, and then sends the result to the specified e-mail address. The script are set up to run as a scheduled task until the application administrator have deleted old data in the database.

The script are uploaded to PoshCode, and are available from here.


May 10, 2009 - Posted by Jan Egil Ring | SQL Server, Scripting, Windows PowerShell

No comments yet.

Leave a comment