Solved

Change datasource in SSRS break report

Posted on 2014-03-12
4
624 Views
Last Modified: 2014-03-21
I have an existing report I set which has about fifty fields forty of which are shared by several tables.  I wanted to create a base report with those fields added and formatted and then use a copy of that to report on the different tables.

The problem is when I change the dataset query it always breaks the report.  I tend to get errors regarding the tablix sort orders and even after I delete everything it never works right.  

Is there a way for me to change the dataset and then "refresh" the report to get is working with the new data?
0
Comment
Question by:canuckconsulting
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
DcpKing earned 200 total points
ID: 39925332
get your data from a stored procedure, not a query embedded in the report. That way you can change your SP as much as you like, and, as long as it returns the same format of data, it should always work - SSRS won't see any difference

hth

Mike
0
 

Author Comment

by:canuckconsulting
ID: 39932408
Thanks mike

In this case some of the fields will change (different columns in query; some new some deleted).  Anyway for SSRS and the dependant tablix to cope?
0
 
LVL 27

Assisted Solution

by:planocz
planocz earned 300 total points
ID: 39932882
you need to just have a SP that has the Base Fields in it as a standlone  dataset.
Then for each report  you have your main dataset and then you just add the second Base dataset to the report and you can add from both datasets the info that you need into the tablix table.
SSRS report can have more than one dataset in it and still run.
0
 

Author Closing Comment

by:canuckconsulting
ID: 39945930
Thanks guys
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question