To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Related Sites > SQL Course

SQL Course SQL Course > Ask questions about the lessons on SQL Course 1 and 2. If you have problems > with the interface, please post in the Feedback forum

Reply Post New Thread
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-17-2002, 01:36 PM
Jay50 Jay50 is offline
Junior Member
 
Join Date: Oct 2002
Location: US
Posts: 5
Transaction Log Size doesn't show correct

Hi All,
I have a production database in SQL 2000 server. It is configured to truncate on check point. when ever I check the log size by right click on database and choose property and then logfile the size is keep on showing the ever growing transaction file size. I truncated the logfile and restarted the server. No new news.
The transaction log file is set to unlimited growth.
Can you please tell me how do i get the file shrink to its orginal value?? The files are set to shrink files option.
Any advice would be gratly appreciated. (The Transaction file size is 41 gig, initially it was set to 1gig)
Reply With Quote
  #2  
Old 11-12-2002, 12:46 PM
sduggan sduggan is offline
Junior Member
 
Join Date: Nov 2002
Posts: 4
Jay,

I too had problems with non-truncating log files, but in SQL7.

I ploughed through reams of stuff in BOL and MSDN, but the crux was
issue DBCC shrinkfile,
then do a backup log truncate only

e.g.:

DBCC shrinkfile ( <log file name>, <size to shrink to in mb> )
go
backup log <DB Name> with truncate_only
go

so for my instance:

DBCC shrinkfile ( Tracker_Log, 1000 )
go
backup log Tracker with truncate_only
go

It may not show staright away as this only marks it for truncation,
and it can not truncate whilst any part of the file is active,
but as soon as it can shrink it should do.


Cheers sduggan...
Reply With Quote
Reply Post New Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:40 PM.


DatabaseJournal Recent Articles


 » Searching and Sorting Strings in Oracle

 » Preparing To Upgrade Access Tables to SQL ...

 » Sun Expands MySQL With Closed Source

 » Microsoft Demos New SQL Server Features at...

 » Wipro and Oracle Launch First Joint Innova...

Search Database Journal:
 





Acceptable Use Policy

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.