0

I have a stored procedure returning data like:

Id   Name   fromTable
1    Alison Table1
2    Gary   Table2
3    Jack   Table1
4    John   Table3

by the code:

Select Id, Name, fromTable='Table1' from Table1
union
Select Id, Name, fromTable='Table2' from Table2
union
Select Id, Name, fromTable='Table3' from Table3

I created a report in SSRS 2008, created Dataset1 which is connected to this SP and I am inserting a table to my SSRS report which is connected to Dataset1. However, here I only see the data coming from Table1 (Alison and Gary). I cannot see the data coming from Table2 and Table3. I could not understand why it is happening and how to fix it, because seems like query is working well in the SQL Server 2008. Any help would be appreciated.

Eray Balkanli
  • 7,752
  • 11
  • 48
  • 82

5 Answers5

0

Hey I will do couple of things here.

  1. I will run my query in query designer in SSRS(Visual studio) after clicking refresh fields. If you are not getting all data here you have an issue in your query.
  2. I will delete rdl data file, to make sure you are not holding any cache.
Hari
  • 192
  • 2
  • 12
0

I tried the sample data you gave i can see all the data in my SSRS 2008. i will suggest you delete the report and re-create it making sure that the report is pointed to the correct data source

JonWay
  • 1,585
  • 17
  • 37
0

First, validate your data in sql server. Sometimes these SP's do not do exactly what we intended them to do, although your query looks simple enough I would still double check. If that output is what you need then I would suggest just rewriting your ssrs ensuring that your datasource is correct and everything else is jiving. SSRS is super clunky!!!

StelioK
  • 1,771
  • 1
  • 11
  • 21
0
  1. to test cache issue, make any notable change in SQL to see if it's coming through.

  2. to test any rdl issues made any notable change in let say Header and run report

  3. if those 2 test passed OK, then check dataset properties (Filters)

  4. if this passed then check Tablix properties (filters), then tablix raw visibility

  5. Check dataset properties (Query type: make sure if it's sp name = corrrect).

  6. Check data SOURCE ! so it points to the right server / db

Is this yours rdl or somebody's else?

J

YakovL
  • 7,557
  • 12
  • 62
  • 102
Jian
  • 1
0

This is very handy solution to add to your VS:How to add Clear Cache from VS/Tools

Jian
  • 1