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)
 Scripts to find data file and transcation file size

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-08-16 : 09:35:21
vaddi writes "I would like to get any script which gives me the data file and transcation log file size in sqlserver 2000. And also an script to find the capacites on the drives."

sanjnep
Posting Yak Master

191 Posts

Posted - 2006-08-16 : 09:40:37
sp_helpdb master

You will get like this:
..................................................................

name fileid filename filegroup size maxsize growth usage
master 1 D:\MSSQL\MSSQL\data\master.mdf PRIMARY 102400 KB 204800 KB 100% data only
mastlog 2 D:\MSSQL\MSSQL\data\mastlog.ldf NULL 20480 KB 40960 KB 100% log only


Sanjeev Shrestha
12/17/1971
Go to Top of Page

schuhtl
Posting Yak Master

102 Posts

Posted - 2006-08-16 : 11:27:12
I would use sp_helpfile for the file sizes (sp_helpdb uses sp_helpfile).

Look here for drive capacity info...
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=66447
Go to Top of Page
   

- Advertisement -