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.

Advertisements

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

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: