Unix Technical Forum

SQL Server 2000 and Transaction Log Error

This is a discussion on SQL Server 2000 and Transaction Log Error within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi All: I am getting an error when trying to open a recordset in SQL Server 2000. The error ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:44 PM
Ryan P. Kennedy
 
Posts: n/a
Default SQL Server 2000 and Transaction Log Error

Hi All:

I am getting an error when trying to open a recordset in SQL Server 2000.
The error states that the transaction log is full. Is there any way I can
clear out or empty the transaction log, or get rid of it alltogether as it
is not really needed?

Any help would be appreciated.

Thanks and regards,

Ryan


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:44 PM
Ray Higdon
 
Posts: n/a
Default Re: SQL Server 2000 and Transaction Log Error

First you can run

backup log dbname with truncate_only

then you can run

DBCC SHRINKFILE (logfilename, 5) (shrinks log file to 5mb)

then change the recovery mode to simple

alter database dbname set recovery simple

HTH

Ray Higdon MCSE, MCDBA, CCNA

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:30 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com