<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Recycle Error Log &#8211; Create New Log file without Server Restart</title>
	<atom:link href="http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sat, 25 May 2013 01:31:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: leelo7</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-431565</link>
		<dc:creator><![CDATA[leelo7]]></dc:creator>
		<pubDate>Mon, 04 Mar 2013 16:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-431565</guid>
		<description><![CDATA[I wish someone had mentioned that sp_cycle_agent_errorlog is in the msdb system stored procedures. I guess everone knows sp_cycle_errorlog is in master.]]></description>
		<content:encoded><![CDATA[<p>I wish someone had mentioned that sp_cycle_agent_errorlog is in the msdb system stored procedures. I guess everone knows sp_cycle_errorlog is in master.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #007 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-393521</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #007 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 15 Dec 2012 01:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-393521</guid>
		<description><![CDATA[[...] Recycle Error Log – Create New Log file without Server Restart Once I observed a DBA to restaring the SQL Server when he needed new error log file. This was funny and sad both at the same time. There is no need to restart the server to create a new log file or recycle the log file. You can run sp_cycle_errorlog and achieve the same result. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Recycle Error Log – Create New Log file without Server Restart Once I observed a DBA to restaring the SQL Server when he needed new error log file. This was funny and sad both at the same time. There is no need to restart the server to create a new log file or recycle the log file. You can run sp_cycle_errorlog and achieve the same result. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Beginning New Weekly Series &#8211; Memory Lane &#8211; #002 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-371923</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Beginning New Weekly Series &#8211; Memory Lane &#8211; #002 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 10 Nov 2012 01:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-371923</guid>
		<description><![CDATA[[...] Recycle Error Log – Create New Log file without a Server Restart During one of the consulting assignments I noticed DBA restarting server to create new log file. This is absolutely not necessary and restarting server might have many other negative impacts. There is a common sp_cycle_errorlog which can do the same task efficiently and properly. Have you ever used this SP or feature? [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Recycle Error Log – Create New Log file without a Server Restart During one of the consulting assignments I noticed DBA restarting server to create new log file. This is absolutely not necessary and restarting server might have many other negative impacts. There is a common sp_cycle_errorlog which can do the same task efficiently and properly. Have you ever used this SP or feature? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rudra Bhattacharya</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-306906</link>
		<dc:creator><![CDATA[Rudra Bhattacharya]]></dc:creator>
		<pubDate>Thu, 28 Jun 2012 10:22:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-306906</guid>
		<description><![CDATA[Thanks ,This is very helpful.]]></description>
		<content:encoded><![CDATA[<p>Thanks ,This is very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; A Quick Look at Logging and Ideas around Logging &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-300137</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; A Quick Look at Logging and Ideas around Logging &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Tue, 12 Jun 2012 01:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-300137</guid>
		<description><![CDATA[[...] Recycle Error Log – Create New Log file without Server Restart [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Recycle Error Log – Create New Log file without Server Restart [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; T-SQL Errors and Reactions &#8211; Demo &#8211; SQL in Sixty Seconds #005 &#8211; Video &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-260211</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; T-SQL Errors and Reactions &#8211; Demo &#8211; SQL in Sixty Seconds #005 &#8211; Video &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 07 Mar 2012 01:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-260211</guid>
		<description><![CDATA[[...] on Errors: Explanation of TRY…CATCH and ERROR Handling Create New Log file without Server Restart Tips from the SQL Joes 2 Pros Development Series – SQL Server Error Messages I encourage you to [...]]]></description>
		<content:encoded><![CDATA[<p>[...] on Errors: Explanation of TRY…CATCH and ERROR Handling Create New Log file without Server Restart Tips from the SQL Joes 2 Pros Development Series – SQL Server Error Messages I encourage you to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-253438</link>
		<dc:creator><![CDATA[Raj]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 08:34:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-253438</guid>
		<description><![CDATA[Dear Pinal , 

This is rajendiran, i am  novice to sql server dba. apart from this concept .i have tremendous doubt in mirroring concept could u clarify it. i configured A,B and C three server i mean principal , mirror and witness . if i take manual  log backup on principal server with Truncate_only  option in 2005 . it will delete or not without sending to mirror server...please reveal me [email removed]

Thanks,
M.Rajendiran]]></description>
		<content:encoded><![CDATA[<p>Dear Pinal , </p>
<p>This is rajendiran, i am  novice to sql server dba. apart from this concept .i have tremendous doubt in mirroring concept could u clarify it. i configured A,B and C three server i mean principal , mirror and witness . if i take manual  log backup on principal server with Truncate_only  option in 2005 . it will delete or not without sending to mirror server&#8230;please reveal me [email removed]</p>
<p>Thanks,<br />
M.Rajendiran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; T-SQL Errors and Reactions &#8211; SQL in Sixty Seconds #002 &#8211; Video &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-252646</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; T-SQL Errors and Reactions &#8211; SQL in Sixty Seconds #002 &#8211; Video &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 15 Feb 2012 01:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-252646</guid>
		<description><![CDATA[[...] on Errors: Explanation of TRY…CATCH and ERROR Handling Create New Log file without Server Restart Tips from the SQL Joes 2 Pros Development Series – SQL Server Error Messages I encourage you to [...]]]></description>
		<content:encoded><![CDATA[<p>[...] on Errors: Explanation of TRY…CATCH and ERROR Handling Create New Log file without Server Restart Tips from the SQL Joes 2 Pros Development Series – SQL Server Error Messages I encourage you to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunil Kumar Kaushal</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-240030</link>
		<dc:creator><![CDATA[Sunil Kumar Kaushal]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 06:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-240030</guid>
		<description><![CDATA[Hi Pinal,

I want a procedure that will insert data into Log table.
Log table structure :

Id, LogMessage, ErrorProcedureName, ErrorMessage,InsertingRowNumber, AddedOn

Condition :

If any error come while inserting row into Base table, then this row should be added into the log table with log error msg but not in Base table.

If no error come then insert row into Base table and one sucessfully msg insert into log table.

Please help me out.

Regards
[email removed]]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I want a procedure that will insert data into Log table.<br />
Log table structure :</p>
<p>Id, LogMessage, ErrorProcedureName, ErrorMessage,InsertingRowNumber, AddedOn</p>
<p>Condition :</p>
<p>If any error come while inserting row into Base table, then this row should be added into the log table with log error msg but not in Base table.</p>
<p>If no error come then insert row into Base table and one sucessfully msg insert into log table.</p>
<p>Please help me out.</p>
<p>Regards<br />
[email removed]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mubeenabdul</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-239308</link>
		<dc:creator><![CDATA[Mubeenabdul]]></dc:creator>
		<pubDate>Tue, 17 Jan 2012 11:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-239308</guid>
		<description><![CDATA[i had created the job previously but now some errors are comes log failed. what is the reason for this error]]></description>
		<content:encoded><![CDATA[<p>i had created the job previously but now some errors are comes log failed. what is the reason for this error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajasekhara Reddy</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-211377</link>
		<dc:creator><![CDATA[Rajasekhara Reddy]]></dc:creator>
		<pubDate>Mon, 05 Dec 2011 14:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-211377</guid>
		<description><![CDATA[Hi Pinal,

Is &quot;SQL Server&quot; allow users to connect to the database server during recycling process?]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Is &#8220;SQL Server&#8221; allow users to connect to the database server during recycling process?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-135045</link>
		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Wed, 18 May 2011 18:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-135045</guid>
		<description><![CDATA[In our system
We take full backups daily and Transaction log updates every 15 minutes or up to 96 in a day.  Each one is logged in the log file so I developed the following best practices.

1. Set the number of log files to 18 from the default of 6 to do this:
 a. SQL 2005 - Right click on SQL Server logs folder in Managment studio and choose Configure from the pop up menu.
 b. Click the Check box Limit the number of errorlogs before they are recyled and we set it to 18 to allow us to keep potentially useful data if we have to do multiple re-starts.
 c. Click Ok
2. Create a SQL Job that executes 
EXEC sp_cycle_errorlog
on a daily basis.


Tahir, to get rid of the old logs, you can just keep running EXEC sp_cycle_errorlog and they will go away, but if you follow the above best practices you might not need to do that.

Brian M.]]></description>
		<content:encoded><![CDATA[<p>In our system<br />
We take full backups daily and Transaction log updates every 15 minutes or up to 96 in a day.  Each one is logged in the log file so I developed the following best practices.</p>
<p>1. Set the number of log files to 18 from the default of 6 to do this:<br />
 a. SQL 2005 &#8211; Right click on SQL Server logs folder in Managment studio and choose Configure from the pop up menu.<br />
 b. Click the Check box Limit the number of errorlogs before they are recyled and we set it to 18 to allow us to keep potentially useful data if we have to do multiple re-starts.<br />
 c. Click Ok<br />
2. Create a SQL Job that executes<br />
EXEC sp_cycle_errorlog<br />
on a daily basis.</p>
<p>Tahir, to get rid of the old logs, you can just keep running EXEC sp_cycle_errorlog and they will go away, but if you follow the above best practices you might not need to do that.</p>
<p>Brian M.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yrushka</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-99060</link>
		<dc:creator><![CDATA[yrushka]]></dc:creator>
		<pubDate>Thu, 11 Nov 2010 11:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-99060</guid>
		<description><![CDATA[Hi Dave, 

I am using this feature but in a different way. 

Instead of EXEC sp_cycle_errorlog I run a DBCC command to cycle the Error Log.: 

Exec (&#039;DBCC ErrorLog&#039;)   

Actually I created a monthly job that will re-create the SQL Log file. This way I avoid filling the log file up to a huge size being very hard to use it.]]></description>
		<content:encoded><![CDATA[<p>Hi Dave, </p>
<p>I am using this feature but in a different way. </p>
<p>Instead of EXEC sp_cycle_errorlog I run a DBCC command to cycle the Error Log.: </p>
<p>Exec (&#8216;DBCC ErrorLog&#8217;)   </p>
<p>Actually I created a monthly job that will re-create the SQL Log file. This way I avoid filling the log file up to a huge size being very hard to use it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-98719</link>
		<dc:creator><![CDATA[Leonard]]></dc:creator>
		<pubDate>Tue, 09 Nov 2010 16:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-98719</guid>
		<description><![CDATA[As part of my weekly maintenance, I run the sp_recycle_errorlog.  I have also increased the number of errorlogs from the default of 6, to 26.  So, once a week, I get a new log, and anything older than 26 weeks is deleted.  Of course a server reboot gives you a new one, so that counts against my 26, but you can adjust to what you need by right clicking on SQL Server logs, and select the Configure option to set the amount of logs you want.  I suppose you could recycle the logs every night or once a month, depending on your needs.  Also, see sp_cycle_agent_errorlog to recycle the agent errorlog]]></description>
		<content:encoded><![CDATA[<p>As part of my weekly maintenance, I run the sp_recycle_errorlog.  I have also increased the number of errorlogs from the default of 6, to 26.  So, once a week, I get a new log, and anything older than 26 weeks is deleted.  Of course a server reboot gives you a new one, so that counts against my 26, but you can adjust to what you need by right clicking on SQL Server logs, and select the Configure option to set the amount of logs you want.  I suppose you could recycle the logs every night or once a month, depending on your needs.  Also, see sp_cycle_agent_errorlog to recycle the agent errorlog</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sivaprasad S- SIVA</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-98698</link>
		<dc:creator><![CDATA[Sivaprasad S- SIVA]]></dc:creator>
		<pubDate>Tue, 09 Nov 2010 14:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-98698</guid>
		<description><![CDATA[Pinal Dave,

Please suggest  on some  software presentation tools or utilities which you use most.]]></description>
		<content:encoded><![CDATA[<p>Pinal Dave,</p>
<p>Please suggest  on some  software presentation tools or utilities which you use most.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fairoze Ahmed</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-98668</link>
		<dc:creator><![CDATA[Fairoze Ahmed]]></dc:creator>
		<pubDate>Tue, 09 Nov 2010 10:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-98668</guid>
		<description><![CDATA[Its quite interesting dave... Thanks for this knowledge...]]></description>
		<content:encoded><![CDATA[<p>Its quite interesting dave&#8230; Thanks for this knowledge&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dheeraj</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-98655</link>
		<dc:creator><![CDATA[Dheeraj]]></dc:creator>
		<pubDate>Tue, 09 Nov 2010 07:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-98655</guid>
		<description><![CDATA[Good Stuff , Simple things we tend to over see 

Thanks Dave]]></description>
		<content:encoded><![CDATA[<p>Good Stuff , Simple things we tend to over see </p>
<p>Thanks Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paresh</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-98652</link>
		<dc:creator><![CDATA[Paresh]]></dc:creator>
		<pubDate>Tue, 09 Nov 2010 07:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-98652</guid>
		<description><![CDATA[Hi Pinal,

I have used many time in production server when error log very full and consume very space in drive over in GB.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I have used many time in production server when error log very full and consume very space in drive over in GB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tahir</title>
		<link>http://blog.sqlauthority.com/2010/11/09/sql-server-recycle-error-log-create-new-log-file-without-server-restart/#comment-98632</link>
		<dc:creator><![CDATA[Tahir]]></dc:creator>
		<pubDate>Tue, 09 Nov 2010 05:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10751#comment-98632</guid>
		<description><![CDATA[Thanks Pinal but what if I want to get red of all old error log files. The reason you know that error log filled very quickly and consume a lot of space. 

Can you tell me how to do it.]]></description>
		<content:encoded><![CDATA[<p>Thanks Pinal but what if I want to get red of all old error log files. The reason you know that error log filled very quickly and consume a lot of space. </p>
<p>Can you tell me how to do it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
