Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 How to clear the logs

Author  Topic 

jag_chat
Starting Member

3 Posts

Posted - 2004-01-28 : 21:35:43
I want to clear the whole transaction log and sql server log...ie., just clear all the entires....how

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-01-28 : 23:13:28
BACKUP LOG myDB WITH NO_LOG

The SQL Server error log can be cycled using the sp_cycle_errorlog procedure, but all it does is create a new log file, it does not clear or erase existing log files.
Go to Top of Page
   

- Advertisement -