SQL Server Query Archive
maandag, maart 05, 2007
Get space used per file - 2000
SELECT name,
CAST( ( FILEPROPERTY( name, 'SpaceUsed' ) * 8 )
/ 1024. AS numeric( 10, 2 ) ) as 'SpaceUsed',
CAST( ( size * 8 ) / 1024. AS numeric( 10, 2 ) ) as 'Reserved'
FROM sysfiles
posted by WesleyB @
9:36 a.m.
0 comments
0 Comments:
Een reactie posten
<< Home
Bijdragers
killspid
WesleyB
Previous Posts
The real SQL Server query archive
Space used - 2000
Calculate waitstats - 2005
Foreign key DROP/CREATE generator - 2005
Foreign key index check - 2005
Welcome
0 Comments:
Een reactie posten
<< Home