2

When I create SSRS reports I create stored procedures to bring data into my report. When I create the report parameters I just embed SQL code directly in to the parameter/SSRS report.

Should I also create stored procedures for my parameter data sources?

It seems like a bit of overkill to create a SP for every single paramamter/datasource in a report but I guess if you want to be able to modify the SQL code the parameter uses to load the drop down values without having to open the actual report, then I would probably want to go with SPs for everything....

2
  • 1
    I think you answered your own question...it is up to the designer and the standard you want to use when building your reports.
    – user507
    Aug 10 '15 at 21:20
  • I was wondering more if there was an existing generally accepted standard or best practices way of populating the values of a dropdown parameter in SSRS (SP vs embedded query). Pros and Cons of using 1 method vs the other.
    – Juan Velez
    Aug 11 '15 at 17:32
1

Apparently there is not a set (or recommended) standard (that I could find). Since development needs vary from project to project the developer should decide during the development process, whether to create stored procedures for their parameter data sources or to simply hard code the drop down values inside the report itself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.