Home > Ask the SQL Server Experts > Michael Hotek Questions & Answers > Resolving a transaction log full error
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

Resolving a transaction log full error

Michael Hotek EXPERT RESPONSE FROM: Michael Hotek

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 29 June 2004

Is it possible to handle a transaction log full error in T-SQL ? I have one T-SQL for DBCC DBREINDEX which is scheduled in the background once weekly. In this script I identify tables with scan density < 90 % and do DBCC DBREINDEX for all those tables in a loop. Even though the transaction log backup is scheduled in 10-minute frequencies, sometimes the transaction log becomes full and the process terminates. Is there is any possibility to handle the 9002 error in the same script in order to put a pause for 30 or 35 minutes (by the time transaction log backup will happen) and continue the process with the remaining tables? If possible, checking the transaction log used percentage will also be a help to me.

We are using MS SQL Server 2000 with SAP R/3 4.6C. Our database size is 219 GB and transaction log size is 19 GB. Further increase of the size of the transaction log is a constraint now. Moreover, in the normal run, even though we back up the transaction log at a two-hour duration, the percentage of use is very nominal.


>

I would suggest moving to using indexdefrag which will have a lower impact on the size of your transaction log files.

For More Information


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Michael Hotek
Applying LDF file to MDF without turning it to .BAK first?
Procedure for finding last modified info?
Migrating poorly designed database to new, normalized one
Displaying decimal places in SQL Server 2000
Creating a DTS package
Extracting data without strings converted to strange characters
Money data type conversion issue using DTS
Any way to alias a call to functions?
Repairing corrupt MDF files
In-place versus side-by-side upgrade

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SQL Solutions - SQL Database Design
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts