By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,412 Members | 1,630 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,412 IT Pros & Developers. It's quick & easy.

MDF and LDF files size command

P: n/a
Hi All,

I want to shrink a transaction log using :
USE Master
BACKUP Log test WITH truncate_only
USE test
DBCC shrinkfile(test_log, 0)

These commands will be executed from a workstation.
After shrinking, I want to see the size of the
transaction log and database files. But, I do not
know what command should I use.
Could anyone help me ?

Thanks in advance

John S.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"John S" <nospam> wrote in message news:41**********@127.0.0.1...
Hi All,

I want to shrink a transaction log using :
USE Master
BACKUP Log test WITH truncate_only
USE test
DBCC shrinkfile(test_log, 0)

These commands will be executed from a workstation.
After shrinking, I want to see the size of the
transaction log and database files. But, I do not
know what command should I use.
Could anyone help me ?

Thanks in advance

John S.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


exec sp_helpdb test

Simon
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.