SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Database size trending with powershell

By Gene Hunter,

you need to run the create table for both the ServerList and also the dba_server_database_sizetrend. After you do that you need to insert data for each column example in code above.

example of insert for table
Alias = Server1.com
Connection =,1433
 IP =

then you cut and paste the powershell script into a powershell file. Make sure you have codeplex SQLServer module installed. After you do this you can run the script and it will cursor trhough the list of servers in ServerList and populate database sizes in MB into the table.


Total article views: 2866 | Views in the last 30 days: 1