Skip to content

Instantly share code, notes, and snippets.

@lotsahelp
lotsahelp / SSRS - Force Description Update.sql
Created February 21, 2018 22:16
Forces SSRS catalog to update report definition based on report content.
USE ReportServer;
WITH XMLNAMESPACES
(
'http://schemas.microsoft.com/SQLServer/reporting/reportdesigner' AS rd,
DEFAULT 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'
)
--SELECT Report.value('(.)[1]', 'nvarchar(512)')
UPDATE c
SET c.Description = Report.value('(.)[1]', 'nvarchar(512)')
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Logs]
(
[Id] [int] IDENTITY(1, 1) NOT NULL ,
[Message] [nvarchar](MAX) NULL ,
[MessageTemplate] [nvarchar](MAX) NULL ,