SQL Server Database analysis using T-SQL -


I have a small application that has approximately 38 tables in the database (SQL Server 2000/2005). Now I want to know how much data they are using using T-SQL (not in the KB / MB records). By saying better, I want to analyze the whole database. Is this possible? how ? If you want to find the place of each table, you can use the following:

/ P>

  USE yourdbname EXEC SP_MSforeachtable @ command1 = "EXEC sp_spaceused '?'"  

for further reading


Comments

Popular posts from this blog

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -