Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 TABLE FREE EXTENTS

Author  Topic 

sqlserverdba
Yak Posting Veteran

53 Posts

Posted - 2009-03-08 : 22:39:58
Hi,

I want to find how much space free in all tables of particular
database.

Thanks,

-Dinesh

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-03-08 : 22:48:12
[code]Use Dbname
Exec sp_Msforeachtable @command1 = 'Exec sp_spaceused'[/code]
Go to Top of Page

sqlserverdba
Yak Posting Veteran

53 Posts

Posted - 2009-03-08 : 23:03:19
Correct ,but I want to see which table is closer to max extents.Therefore I want to save output of following command.
How to do that?

Use Dbname
Exec sp_Msforeachtable @command1 = 'Exec sp_spaceused'

Thanks,
-Dinesh
Go to Top of Page
   

- Advertisement -