Changes to parameter not showing on Report Server after deployment

This is “by design”: When you first deploy reports, parameters are uploaded with all their settings. Administrators of those reports are then allowed to tweak the way report parameters function in the report web manager: change whether they accept null values, defaults, etc. If you redeploy reports later, nothing is changed to existing parameters (the … Read more

Passing a parameter via URL to SQL Server Reporting Services

First, be sure to replace Reports/Pages/Report.aspx?ItemPath= with ReportServer?. In other words, instead of this: http://server/Reports/Pages/Report.aspx?ItemPath=/ReportFolder/ReportSubfolder/ReportName Use this syntax: http://server/ReportServer?/ReportFolder/ReportSubfolder/ReportName Parameters can be referenced or displayed in a report using @ParameterName, whether they’re set in the report or in the URL. You can attach parameters to the URL with &ParameterName=Value. To hide the toolbar where parameters … Read more

Sql PIVOT and string concatenation aggregate

In order to get the result, first you should concatenate the values into the comma separated list. I would use CROSS APPLY and FOR XML PATH: SELECT distinct e.[Event Name], e.[Resource Type], LEFT(r.ResourceName , LEN(r.ResourceName)-1) ResourceName FROM yourtable e CROSS APPLY ( SELECT r.[Resource Name] + ‘, ‘ FROM yourtable r where e.[Event Name] = … Read more

Add alternating row color to SQL Server Reporting services report

Go to the table row’s BackgroundColor property and choose “Expression…” Use this expression: = IIf(RowNumber(Nothing) Mod 2 = 0, “Silver”, “Transparent”) This trick can be applied to many areas of the report. And in .NET 3.5+ You could use: = If(RowNumber(Nothing) Mod 2 = 0, “Silver”, “Transparent”) Not looking for rep–I just researched this question … Read more

SSRS Expression Divide by Zero Error

You can add a function to your report code that handles the divide by zero condition, this makes it a bit easier to implement in multiple cells, e.g. Public Function Divider (ByVal Dividend As Double, ByVal Divisor As Double) If IsNothing(Divisor) Or Divisor = 0 Return 0 Else Return Dividend/Divisor End If End Function You … Read more

Could not load file or assembly ‘Microsoft.ReportViewer.Common, Version=11.0.0.0

Dont know if this is good to anyone, but search all these dlls: Microsoft.ReportViewer.Common.dll Microsoft.ReportViewer.ProcessingObjectModel.dll Microsoft.ReportViewer.WebForms.dll Microsoft.ReportViewer.WinForms.dll Microsoft.ReportViewer.DataVisualization.dll You find them in C:\Windows\assembly\GAC_MSIL\…, and then put them in the references of your project. For each of them say: local copy, and check for 32 or 64 bit solution.

tech