I am trying to use the stored procedure described in this post:
http://www.sqlservercentral.com/scripts/RSExecutionLog/66858/ to save SSRS execution logs. When I run the code from that website, I get the following errors: "Inccorect syntax near ' '." and "Incorrect syntax near the keyword 'with'."
I can't figure out why I am getting these errors. I am using SQL Server 2008 - could that be the issue here?
Here is the section of code that causes the problem: