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 2008 R2 – SSRS 2012 – ReportViewer: Reports are blank in Safari and Chrome

Ultimate solution (works in SSRS 2012 too!) Append the following script to the following file (on the SSRS Server) C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\js\ReportingServices.js function pageLoad() { var element = document.getElementById(“ctl31_ctl10”); if (element) { element.style.overflow = “visible”; } } Note: As azzlak noted, the div’s name isn’t always ctl31_ctl10. For SQL 2012 tryctl32_ctl09 and for … Read more

Left Outer Join Not Working?

You should move the constraints on prescriptions.filldate into the ON condition of the join, and remove it from the where clause: LEFT OUTER JOIN prescriptions ON prescriber.dea_no = prescriptions.dea_no AND prescriptions.filldate >= ’09-01-12′ AND prescriptions.filldate <= ’09-17-12′ Otherwise, entries for which there are no prescriptions end up with nulls in prescriptions.filldate, and the WHERE clause … Read more