Go Back   CORTEX Forums > Local Happenings > CORTEX Blogs > BI Monkey
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

SSRS & Stored Procedures

This is a discussion on SSRS & Stored Procedures within the BI Monkey forums, part of the CORTEX Blogs category; As an ETL Monkey, my experience with reports has been a bit incidental. One thing that puzzled me though is why report developers always wrote stored procedures to generate data ...


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 19th July 2010, 02:51 PM   #1
Guru
 
Join Date: Jun 2009
Posts: 122
James Beresford is on a distinguished road
Thumbs up SSRS & Stored Procedures

As an ETL Monkey, my experience with reports has been a bit incidental. One thing that puzzled me though is why report developers always wrote stored procedures to generate data for their reports, instead of using the SQL capabilities within the report. They said “Best Practice” and I was happy to leave them to it!

In this detailed post Adam Haines explains why. It’s very detailed so here are the key points if you have a short attention span:
  • The query can be maintained independently of SSRS, allowing tuning the query without accessing or modifying the reports
  • The execution plans can be cached if you use an Stored Procedure, but not if you use SSRS
  • Stored procedures allow the use of certain objects that cannot be used in embedded T-SQL in the report such as temp tables and indexes specific to those temp tables as well as table variables
  • Stored Procedures provide a layer of abstraction between the report and the business logic
  • Stored Procedures allow re-use of similar logic
Credit for the above list*to my colleague John Simon who authored most of the above points in an internal discussion.



Get More from the original blog...
James Beresford is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL - the best stored routine is the one you don't write Latest News Headlines DWH Tip Feeds 0 18th February 2010 09:48 AM
SAS® Text Analytics reveals new insights in stored documents Latest News Headlines Other International Vendors 0 17th February 2010 05:06 AM
SAS® Text Analytics reveals new insights in stored documents Latest News Headlines SAS Forum 0 17th February 2010 02:59 AM
MySQL: Refactoring a Stored Function Latest News Headlines DWH Tip Feeds 0 25th November 2009 12:03 PM
Microsoft SSIS SSRS Consultant - Visionary and Methodical admin 2009 Job Archive 0 27th October 2009 10:05 PM


All times are GMT +11. The time now is 10:01 AM.

© The Business Intelligence Group

Search Engine Optimization by vBSEO