Author |
Topic |
santosh2307
Starting Member
7 Posts |
Posted - 2009-03-24 : 14:25:50
|
All Experts,I have a basic question in SSRS. Should we use the sql commands in the datasets or have stored procedures?Which has more advantages?Or Is there any other way where we will have better performance and control.Thanks for your time. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
santosh2307
Starting Member
7 Posts |
Posted - 2009-03-25 : 04:44:00
|
I have fair idea about the stored procedure advantages, but I specifically require the performance fo SPs in SSRS.quote: Originally posted by tkizer This is a very old debate. I'm in the "stored procedure camp". If you are interested in this very heated debate, I'd suggest googling it. It has been widely discussed.It's not specific to SSRS, by the way. So don't put SSRS in your search.Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/Subscribe to my blog"Let's begin with the premise that everything you've done up until this point is wrong."
|
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-03-28 : 04:54:14
|
we also prefer using stored procedures rather than sql commands. Whenever some small changes come to query logic we can do it in stored procedure rather than tweaking each and every report query where the query is used. also common logic can be written in procedure which can be reused across several reports rather than repetition everywhere. |
|
|
MaddCutty
Starting Member
1 Post |
Posted - 2009-04-06 : 11:13:25
|
We use stored procedures for more complicated items and select statements for simple items. As usual there is no absolute rule where the cutoff between stored procedure and select statements. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
QAZAFI
Yak Posting Veteran
50 Posts |
Posted - 2009-04-08 : 16:26:19
|
I am also with Stored procedure. I will give you one simple reason why I am, First Security but other important thing if you need to change in your select statement you have to deploy your reports back on server but in case of SP you dont need to. So thumb rule is Use SPthanksQazafi Syed |
|
|
|