SSRS coding conventions, best practices, tips and programming guidelines for sql server

3
SSRS Coding Conventions, Best Practices, Tips and Programming Guidelines BY - VISHAL PAWAR

Transcript of SSRS coding conventions, best practices, tips and programming guidelines for sql server

Page 1: SSRS coding conventions, best practices, tips and programming guidelines for sql server

SSRSCoding Conventions, Best Practices, Tips and Programming Guidelines

BY-VISHAL PAWAR

Page 2: SSRS coding conventions, best practices, tips and programming guidelines for sql server

Control Page Sizeuse the common

templateconvert the complex

queries into viewsIntroduce only the

necessary parametersAssign the default value

send “All” to the SQL and handle it

retrieve what is needed

Use all the space Profile the dataBefore start-report

width - std. paper sizesMake sure PDF export

width fits in a pageLengthy reports-

theInteractiveHeightMove the Calculated

fields into viewsRight data type for the

parameters

Rectangle-RCE, List-LSTImage-IMG, Chart-CHT

Report – RPT, Sub report-SRP

Gauge-GGE, Data bar-DTB, Sparkline-SLN

Data sources, Start name with DS

Datasets Name Start with DS

Text box – TXT, Map -MAP , Line - LNE

Table – TBL, Matrix-MTX

Use the DateTime data type instead String

Stop the bug - Cannot read the next data

Show the last refreshed date/time for ETL SSRS Label Formatting

Report Header consistency

Dashboard – KPI and Key information

Adding Comments in Expressions

Use a Dedicated Server for SSRS

Optimize your report queries

query directly impact the SSRS performance

Define No records found properly

Sparkline – Easy % representation

KPI boxes on the leftDisplaying Columns

Dynamically if required

Adding Fields to Page Headers and Footers

Off hours schedule report subscription

Maintain SSRS Server Catalog Databases

Details Report must be with Indicator

Less info more charts Don’t use “Select *”We can Use Visual Basic

(VB) Functions

Enable drilldowns for detail

Use rectangles for consistency , efficiency

Background Selection SSRS Logical page breaksUsing Custom

AssembliesUse linked reports with

hidden parameters

Take advantage of free reports

Embed basic JavaScript code in a report

Formatting of Table Correlated column charts

Soft page breaks PaginationCreate folders and use

linked reports

Implement dynamic image for scorecard feel

Display selected parameter in header

Use dynamic grouping for control

Use snapshots to avoid bottlenecks

Physical page breaks Rendering formatsAvoid security

maintenance if any

Store Colors in the Database

Go further with ReportViewer controls

Tapping Into Third-Party Tools

Use Alternating Row Colors for visibility

Use Multi-Value Parameter inT-SQL

Implement filters for performance

Define pagination to hide overhead

Buy-in to Export to SingleFormat

Used Linked Reports to ManageSecurity

Keep Report Quantity Small

Spend 10 Minutes on Design

Choose the Right ChartUse Query Analyzer and Profiler for Optimization

Define Property CleanupCycleMinutes

Create Reach SSRS Report

Use and Define Grouping properly

Pass parameters through the URL

Use Global Parameter -Page Name

Consistent Layoutexecution log to assess

performancesort a report that has

been exported to Excel

Follow standard Colum and text schema

Develop proper - Ad Hoch report

Use proper Newlines in text boxes

SSRS Deployment's practices

get number of rows in your result set

Reporting Services trace logs

Use C#, VB, SQL perfect combination as required

Page 3: SSRS coding conventions, best practices, tips and programming guidelines for sql server

• BI Solution Architect • Blogging @ http://bimentalist.com , http://sqlmentalist.com• Knowledge sharing - 350+ BI Articles ,400 SQL Article , 350+ SQL Script • 4 Complex SQL tool innovator on Codeplex & open source all- https://goo.gl/OI3sB4• Slide share publication - http://www.slideshare.net/VishalPawar_BI• 2 LinkedIn Post - https://www.linkedin.com/today/author/120635304• Free Power BI Course publish on Udemy - https://goo.gl/ArL0qe , 1400 + Student • Leading Global Power BI User Group http://goo.gl/oV7IHz , 1200+ Member , 12 + Leaders • Professional Microsoft BI Trainer Mentalist Network • Founder & BI Consulting Partner of Right Click Info • NMUG Community Founder Leader , Speaker - http://nmug.org/• Microsoft Community Representative for Navi Mumbai region.• SQL PASS Chapter Lead for Mumbai & Navi Mumbai • MCTS: Microsoft® Certified Technology Specialist -SQL Server 2008 R2, BI • MCSA: Microsoft® Certified Solutions Associate• CSM: Certified Scrum Master from Scrum Alliance, US• SQL Server Expert in Architecting and Optimization • BE - Computer Science & Engineering , RAIT , Mumbai• MBA-Information System, Arianth College , Pune

About Me