1 / 17

SQL Server User Group Meeting Reporting Services Tips & Tricks

SQL Server User Group Meeting Reporting Services Tips & Tricks. Presented by Jason Buck of Custom Business Solutions. jason@custombizsolutions.com. Keys for a successful RS solution. Need good design Report writers need to appreciate business Find commonalities between reports for Reuse.

Download Presentation

SQL Server User Group Meeting Reporting Services Tips & Tricks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SQL Server User Group Meeting Reporting Services Tips & Tricks Presented by Jason Buck of Custom Business Solutions. jason@custombizsolutions.com

  2. Keys for a successful RS solution • Need good design • Report writers need to appreciate business • Find commonalities between reports for Reuse

  3. Reporting Requirements • 4 Parts to a report: • Data Source • Data Set • Parameters • Report Object

  4. Coding Tricks • Think in terms of building a template. • No true interface inheritance, so determine look and feel early • Use meaningful names • Use short names • Use consistent casing structure (camelCasing or PascalCasing)

  5. Gotchas • Only use VB for expressions • Case sensitive dataset item names • Don’t use EXEC SP, use SP command type • SQL Server needs to be on W/S • Data driven subscriptions require Enterprise Edition

  6. Report Manager • Difficult to brand • Easy to work • Complex to manage directory security inheritance

  7. Deployment • Options : • Use Report Manager • Use Visual Studio • Use Web Service • Use a RSScript and run with RS.EXE

  8. Limitations • PDF exports have issues • Hidden fields show as blank cells in PDF • Need to use VS (until 3rd party market – MS Activeviews and Cizer)

  9. Security • Encryption Keys – Cannot simply restore RS DB on another server. • Secures • Credentials used to access data in reports • Connection information (RS APP to RS DB) • User Account Information • Other keys used by client applications • Snapshot and historical data is not encrypted and may be read by a user who can access the chunkdata table. (its serialized, but not encrypted)

  10. Strengths • Works with MDX and TSQL queries for SQL Server data source • Uses standard ADO.NET data comms • Caching • Reduced network traffic • SQL Server backend • Reduced purchase costs • Security model build on W2K security • Strong Intranet/Internet model • Uses open standards (SOAP/XML/WS/RDL) • Extensibility • Use of multiple development tools • Use of multiple front ends • Build my own custom delivery mechanisms and formats. • Lots of excitement out there about RS • VSS development provides a consistent interface

  11. Tips • Use Visual Source Safe • Use Store Procedures to: • reduce risk of SQL Server Injection Statements • Increase performance • Reduce maintenance effort. • Use views when giving end-users access to building reports. • Consider SSL for secure data • Create an SQL user with low access rights i.e.: “reportexecution” with read only rights on the given databases) • Backup Encryption Keys after installation • Backup ReportServer DB regularly.

  12. RS Utilities • rsConfig – Connection between RS APP and RS DB. • rsKeyMgmt – To manage Encryption Key backup and recovery. • rsActivate – Allows us to manage encryption keys across a web farm of RS servers. • rs – runs scripted operations.

  13. RS.EXE • Uses VB.Net script to run automated tasks on a Report Server. • Great for deployment packages. • Uses a familiar programming language. • Use it to: • Copy data between servers • Publish Reports • Create server items (folders/datasources/schedules) • Create subscriptions • Automate deployment (good for test and production) • And more

  14. RS Script file • RSS file is the vb.net script file. • Picture RS.exe as the command line compiler for RSS files. • Uses the RS Webservice. • RSS file can have User Procedures, and module level variables • Must have a main() method (this is the starting point) • RS.exe automatically creates reference to the webservice and creates variable called rs. • Can uses exception handling

  15. Execution with RS.EXE • Parameters • -i ->input filename • -s -> server name • -v -> global variables • -b -> execute as a batch – All or nothing approach • Using Integrated Security Rs –i script.rss –s http://servername/reportserver • Passing a global parameter in Rs –i script.rss –s http://servername/reportserver -v report=“Company Sales”

  16. Quick Demo

  17. Thanks • Meetings will be on the 3rd Tuesday of each month (except December/January???) • Next months meeting will be on Log Shipping and real world stories. • Comments and Questions: jason@custombizsolutions.com • Ideas on future topics • Evaluation forms. • Slides available at www.custombizsolutions.com/MaySUG.ZIP

More Related