473,408 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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 1925

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Thomas Philips | last post by:
In the course of playing around with file input and output, I came across some behavior that is not quite intuitive. I created a simple text file, test.txt, which contains only 3 lines, and which I...
3
by: David Franit | last post by:
Hello, On a v81 UDB AIX system, LOGFILSZ is set to 4000 (4KB pages) for a database. LOGPRIMARY and LOGSECONDARY are set to reasonable values. However, the log files, instead of being 16MB in...
8
by: pakku | last post by:
We are being faced with a situation where our Windows Server based UDB (V7) crashes every so often due to log files getting too full. We are seeing lots of messages in the logs about full log files...
2
by: Sue | last post by:
Is there any way to reduce the size of my db2 log files? My sqlogdir is 69gb with hundreds of log files, more than the size of the database itself, and I am running out of hard disk space. I am...
3
by: Dave | last post by:
I need to concatenate serveral text files into a larger file. I borrowed some code and patched together a batch file that runs in the command processor and looks like this: echo off chdir...
4
by: Todd Acheson | last post by:
TOOLS: Visual Studio.NET 2003 .NET SDK GOAL: Reproduce the DLL's that our Visual Studio.NET development boxes create, by using the SDK command line compilers DILLEMA: RESX Files, how to...
2
by: Tom Wells | last post by:
I have a little file upload page that I have been able to use to successfully upload files to the C: drive of LocalHost (my machine). I need to be able to upload to a network drive from the intranet...
1
by: Arkady Renko | last post by:
Gday Guys I'm attempting to create zip files on the fly for some highly compressible, yet very large files stored on my Web server. At present I'm using a class from the Zend library by Eric...
1
by: gabriel.altay | last post by:
hello everyone, Im trying to write some python code that will return information (file size, last modified ...) about files on a remote computer that I have 'no password' ssh access to. Ive...
18
by: PW | last post by:
Convert them to CSV in Excel, then use TransferText (which does not work correctly and also doesn't accept XLS/Excel files directly) or create a link to an Excel XLS workbook and do an Append Query...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.