I would like to run first a sql script to list all the tables in a database.
Then I would like to print out a list of table size.
I found sp_spaceused but that seems per table.
How can I create something that will list space use on all table is a simple command. I know I can view it in enterprise manager in task pad view but would like to dump it to a text file.
Then I would like to print out a list of table size.
I found sp_spaceused but that seems per table.
How can I create something that will list space use on all table is a simple command. I know I can view it in enterprise manager in task pad view but would like to dump it to a text file.