Skip to Content
author's profile photo Former Member
Former Member

Changing data source to stored procedure

I have many reports that use tables in a SQL database as a data source. There can be anywhere from 1 to 10 tables used in a report. I need to change these over to use a single stored procedure. If I set the data source location for each table to the stored procedure it still shows up as multiple tables, not a single stored procedure in the explorer window. What is the best way to do this without removing all of the fields already on the report?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 27, 2011 at 09:41 PM

    Hi,

    The best way I've found to do this is change the location of only 1 table, I prefer the one where most of the fields are from. Once that's done, cancel out of the Linking Expert window.

    Now any fields or formulas using the other tables, replace those with the matching fields from the Stored Procedure. Once you've replaced all the fields from the other tables you can remove those tables from the report.

    The last thing I do is go into the Database Expert and change the table alias to the Stored Procedure's name.

    Good luck,

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 30, 2011 at 02:59 PM

    Brian,

    Thanks so much for the tip. Setting the location on one table, that does make it much easier.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.