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.