buck.woody
LinkedIn | FaceBook | Twitter
Resume
To get to this report, navigate from the server object in Object Explorer, move down to the Databases object, and then right-click any database. From the menu that appears, select Reports, then Standard Reports, and then this one.
I’ve shown you a couple of other disk usage reports, and this one has similar columns, but includes a breakdown of your tables and indexes by partition. No, these aren’t disk partitions like you’re used to working with at a very low level in the operating system, these partitions are created within SQL Server.
I’ve explained that you can use Filegroups to store files, and that you can place tables and indexes on these Filegroups, which helps you separate them out for performance and maintenance. But what about a single table or index that is “too large” (more on that in a minute) for a Filegroup? What I mean by “too large” has a lot to do with how you use the data. The classic example is a table with order history entries in it. Perhaps you need to keep the detail for a long time, but you don’t want have to pay the performance penalty whenever a table-scan operation happens or perhaps you want to have large amounts of insert or updates to the table and you’re running into maintenance issues.
You can split these tables out manually if you want and join them through views or programmatic means, but that requires some kind of logic to determine when you split the tables, and how you stitch them back together for the users. For this reason, in SQL Server 2005 we created Partitions in the database system. It involves creating a function and some other objects, and then you can use the table as you normally would and SQL Server will automatically create the breakpoints for you. Very handy. More info on Partitioning is here.
But of course you need a way of tracking the layout of the data for reporting and size planning. That’s where this report comes in.
Here are the major parts of the report:
PingBack from http://geeklectures.info/2007/12/19/sql-server-standard-reports-%e2%80%93-database-disk-usage-by-partition-databasename/
In this continuing series on the Standard Reports in SQL Server Management Studio , we’re now up to the