﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Perry Dyball  / Stored Procedure to maintain RSExecutionLog / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 02:31:38 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Stored Procedure to maintain RSExecutionLog</title><link>http://www.sqlservercentral.com/Forums/Topic716467-1547-1.aspx</link><description>Doesn't work on 2008r2, getting Msg 8152, Level 16, State 13, Procedure Upd_RSExecutionLog, Line 108String or binary data would be truncated.</description><pubDate>Sat, 20 Nov 2010 19:53:07 GMT</pubDate><dc:creator>MaricopaJoe</dc:creator></item><item><title>RE: Stored Procedure to maintain RSExecutionLog</title><link>http://www.sqlservercentral.com/Forums/Topic716467-1547-1.aspx</link><description>I have also seen some duplicates.  For me, the reason is because of this segment of code where we are inserting data into the RSExecutionLog table:INNER JOIN RSExecutionLog.dbo.Reports R WITH(NOLOCK) ON C.Name COLLATE Latin1_General_CI_AS = R.Name AND C.Path COLLATE Latin1_General_CI_AS = R.Path AND C.Type = R.ReportTypeHere, if you have 2 reports with the same name, but they have different cases, the report execution will get added twice.  For example, I had a report called "dept activity report.rdl".  I then changed it to "Dept Activity Report.rdl".  Both report names get added to the reports table, and therefore 1 report execution gets added twice into the RSExecutionLog table.  To fix this, I just changed the above code to: INNER JOIN RSExecutionLog.dbo.Reports R WITH(NOLOCK) ON c.ItemID = r.ReportIDIt seems like this works fine.Chris</description><pubDate>Mon, 11 Oct 2010 09:40:19 GMT</pubDate><dc:creator>chris.o.smith</dc:creator></item><item><title>RE: Stored Procedure to maintain RSExecutionLog</title><link>http://www.sqlservercentral.com/Forums/Topic716467-1547-1.aspx</link><description>Does this SP apply to SQL Server 2008?</description><pubDate>Thu, 10 Sep 2009 09:39:57 GMT</pubDate><dc:creator>eric.bookbinder</dc:creator></item><item><title>RE: Stored Procedure to maintain RSExecutionLog</title><link>http://www.sqlservercentral.com/Forums/Topic716467-1547-1.aspx</link><description>Thanks for the stored procedure.  I seem to have some duplicates in my ExecutionLogs table though.  Has anyone else had a problem like this.</description><pubDate>Wed, 24 Jun 2009 05:59:55 GMT</pubDate><dc:creator>babreu417</dc:creator></item><item><title>Stored Procedure to maintain RSExecutionLog</title><link>http://www.sqlservercentral.com/Forums/Topic716467-1547-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/RSExecutionLog/66858/"&gt;Stored Procedure to maintain RSExecutionLog&lt;/A&gt;[/B]</description><pubDate>Wed, 13 May 2009 15:04:46 GMT</pubDate><dc:creator>Perry Dyball</dc:creator></item></channel></rss>