Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 25th, 2003, 04:11 PM
Authorized User
 
Join Date: Jun 2003
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!
 
Old September 25th, 2003, 07:54 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
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
 
Old September 26th, 2003, 09:53 AM
Authorized User
 
Join Date: Jun 2003
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?
 
Old September 26th, 2003, 11:51 AM
Friend of Wrox
 
Join Date: Jun 2003
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.