469,110 Members | 1,897 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,110 developers. It's quick & easy.

MDF and LDF files size command

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
1 1857

"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.

Similar topics

2 posts views Thread by Thomas Philips | last post: by
3 posts views Thread by David Franit | last post: by
8 posts views Thread by pakku | last post: by
2 posts views Thread by Sue | last post: by
4 posts views Thread by Todd Acheson | last post: by
2 posts views Thread by Tom Wells | last post: by
1 post views Thread by Arkady Renko | last post: by
1 post views Thread by gabriel.altay | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by kglaser89 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.