Updating report from stored procedure

Hi, I have a report server project which gets its information from a storesd
prodedure. Occasionally that stored procedure changes, some columns may be
added or removed but as I see it now that only way to have my report reflect
those changes is to start a whole new report server project.

is there a way to have my current project re-bind to the updated (changed)
stored procedure or better yet just bind to it so it detects those changes
on its own

thanks!


Answer this question

Updating report from stored procedure

  • kishoremsn

    Yes - open the report in report designer, go to the data tab,

    Click the refresh button (little green arrows going in a circle). This should refresh the list of fields for you. If this doesn't work, try running the query and then going to the layout tab. That should also update the fields list.

    -Lukasz



  • Ivan Martinez

    Yes, it does refresh the data. However if i were to change the stored procedure and remove a column that it currently selects then the layout of the table still has that column. Similarly, if i were to add a selection in the stores procedure the table would not add a column for it.

    any ideas

  • JasonSD

    The report definition RDL is just XML, if you believe your SP is going to change often, you could create a little script to add/remove columns as needed.

    There is no tools support for this kind of edit.

    -Lukasz



  • Updating report from stored procedure