This script backup and shrink all database. Everybody says to never use it but shrinking is necessary if your log/data has grown out of control, or as part of a process to remove excessive fragmentation. Source: http://www.sqlskills.com/blogs/paul/why-you-should-not-shrink-your-data-files/...

We have many ways to obtain the size of all tables using SQL Server. This is a nice solution but we do not really need to use temporary table. http://therightstuff.de/2007/11/19/How-To-Obtain-The-Size-Of-All-Tables-In-A-SQL-Server-Database.aspx If we run the script twice, we have an error. Well, this version uses a...