Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 25th, 2003, 04:11 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL server log is too big.

Hello all,
Somehow my SQL server logs under Management in SQL server enterprise server is too big, it takes long time to view all logs. My current log is 8228442 bytes. Are there anyways I can delete the log? Please so me how to.

Thanks for all HELPS!
Reply With Quote
  #2 (permalink)  
Old September 25th, 2003, 07:54 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Right-click on the database, click on "All Tasks ->" then "Shrink Database...". Take it from there! You can also click on the "Files..." button to get more specific settings.


Peter
Reply With Quote
  #3 (permalink)  
Old September 26th, 2003, 09:53 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, but the logs are not pointing to a specific DB so how do I know which one to shrink?
Reply With Quote
  #4 (permalink)  
Old September 26th, 2003, 11:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Hudson, MA, USA.
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

I think there may some confusion here between the database transaction logs, and the SQL Server error logs.

You can shrink the transaction logs, but as far as I know you can only limit the number of error logs maintained by the system. A new error log is created every time SQL Server starts, and the logs are eventually 'recycled'.

You might want to look at the reasons why your error logs are so big - if they are big it either means there are lots of errors in them, or you haven't restarted SQL Server in a long time.

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server services Log On fizzerchris SQL Server 2005 1 July 7th, 2006 08:56 AM
Audit trailing using SQL server log file madhukp SQL Server 2000 1 April 4th, 2006 01:11 PM
Viewing SQL Server Events Log(s) through .NET Ahmed_Kamran SQL Server 2000 1 December 30th, 2004 01:58 AM
SQL Server - System log full Jane SQL Server 2000 3 December 23rd, 2004 10:10 PM



All times are GMT -4. The time now is 12:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.