SSRS – AumTechHub.Com http://aumtechhub.com Just share it!!! Tue, 23 Nov 2021 01:55:44 +0000 en-US hourly 1 https://wordpress.org/?v=6.7 179596041 SSRS Report Run History http://aumtechhub.com/ssrs-report-run-history/?utm_source=rss&utm_medium=rss&utm_campaign=ssrs-report-run-history Thu, 27 Aug 2020 02:29:10 +0000 http://aumtechhub.com/?p=46 The following query shows report history for a report name (Employee Attendance Report) in the WHERE clause. This is a great way to check what parameters are used and how often the report is being called.

select
[InstanceName]
, [ReportPath]
, [UserName]
, [ExecutionId]
, [RequestType]
, [Format]
, [Parameters]
, [ReportAction]
, [TimeStart]
, [TimeEnd]
, [TimeDataRetrieval]
, [TimeProcessing]
, [TimeRendering]
, [Source]
, [Status]
, [ByteCount]
, [RowCount]
, [AdditionalInfo]
FROM ExecutionLog2
Where ReportPath like '% Employee Attendance Report %'
Order by TimeStart desc

]]>
46
How to restore a deleted report on reporting services? http://aumtechhub.com/how-to-restore-a-deleted-report-on-reporting-services/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-restore-a-deleted-report-on-reporting-services Tue, 25 Aug 2020 02:33:34 +0000 http://aumtechhub.com/?p=16 First get the copy of the ReportServer database backup and restore it. Use the following step to restore.

  1. In SSMS right click the database folder then select restore.
  2. Give a new name for the new restored version of the database. Example:ReportServer2.
  3. If you have to use check boxes to find the point in time to restore to but if you have a full backup then restore the full copy.
  4. Click files section and select the path where the mdf and ldf file should be stored.
  5. Click options and make sure to uncheck Take tail-log backup.
  6. Click OK to complete the restore.

Next you want to extract the XML for the deleted report in the restored copy of the database (ReportServer2).

Use the following query to get the XML content.

SELECT
Name as ReportName, CONVERT(Varchar(Max),CONVERT(VARBINARY(MAX),Content)) AS ReportContent
FROM ReportServer.dbo.Catalog Where Content is NOT NULL

Select the ReportContent XML data and copy it to notepad. Review the very first few character and make sure it starts with “<?xml version=”1.0″……” Remove any extra characters prior if they exists.

Save the XML content as ReportName.rdl

You can then go to the reporting server site and upload the report. If subscriptions existed then it will have to be recreated. You can also delete the restored database (Ex: ReportServer2).

]]>
16
Top SSRS Sites http://aumtechhub.com/top-ssrs-sites/?utm_source=rss&utm_medium=rss&utm_campaign=top-ssrs-sites Tue, 25 Aug 2020 00:17:51 +0000 http://aumtechhub.com/?p=8 MSSQLTips

More to come

]]>
8