I created the following script which will allow us to list all tables in a SQL Server database with the details of the space used and indexes types in each them; this information is helpful to manage our SQL Server databases.
This script is also posted on my personal blog which is http://recursossqlserver.blogspot.com
This Job has been tested in SQL Server 2005 and 2008 R2.