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)
Thank this author by sharing:
By Mohit Nayyar,
"sp_spaceused" procedure is really handy to get the updated information about space usage by database or tables.
I combined the same with another very useful procedure "sp_MSforeachtable" to get this information for all user-defined tables.
If you see any problem with the information then just change the last parameter and set it to TRUE (FALSE in the script). That will update the space usage and then report updated details.
Updating multiple fields with info from a different table
One of the most important aspects of keeping your system running well is updating and managing your ...
Here is an updated version of my diagnostic information queries for SQL Server 2005. You can get the...
I have gone through and made some minor updates and bug fixes for all of my SQL Server Diagnostic ...
I have gone through and made some minor updates and bug fixes for all of my SQL Server Diagnostic In...