cancel
Showing results for 
Search instead for 
Did you mean: 

Changing data source to stored procedure

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

former_member292966
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Brian,

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