I've searched the forums and found similar issues, but nothing quite like what I've experienced. Here goes:
I'm runnning SSRS on SQL Server 2014, designing in Visual Studio 2013 Premium.
I have the following query, designed in SSMS. Normally I use parameters, but for the initial design I hard code them all in to ensure I get the correct data:
SELECT ESXACCTR.LEVEL_5 AS 'AcctNum', ESXACCTR.LEVEL_5 + ' ' + ESXACCTR.ACCT_TITLE AS 'Account', ESXTRANR.DOC_DATE, ESXTRANR.DOC_DESC, ESXTRANR.DOC_REFERENCE, CASE ESGTRAND.DEBIT_CREDIT WHEN 'C' THEN ESGTRAND.AMOUNT * - 1 ELSE ESGTRAND.AMOUNT END AS AMOUNT, ESGBUDPD.AMOUNT_3 AS 'Requested Budget', ESGBUDPD.AMOUNT_6 AS 'Approved Budget' FROM ESXTRANR INNER JOIN ESGTRAND ON ESXTRANR.TRAN_DOC_NO = ESGTRAND.TRAN_DOC_NO AND ESXTRANR.DOC_YEAR = ESGTRAND.DOC_YEAR INNER JOIN ESXACCTR ON ESGTRAND.ACCT_ID = ESXACCTR.ACCT_ID AND ESGTRAND.DOC_YEAR = ESXACCTR.ACCT_YEAR INNER JOIN ESGBUDPD ON ESXACCTR.ACCT_ID = ESGBUDPD.ACCT_ID AND ESXACCTR.ACCT_YEAR = ESGBUDPD.BUD_YEAR WHERE (ESXTRANR.DOC_YEAR = 2015) AND (ESXACCTR.LEVEL_1 = '100') AND (ESXACCTR.LEVEL_4 = '428') AND (ESXACCTR.LEVEL_5 = 53372)
In SSMS this returns two rows, as expected. I copy the query into SSRS, and I only get one row. This is what I've done to troubleshoot so far:
- I've logged into SSMS using the same local SQL account AND logged into SSRS using an admin account, to ensure it's not a permissions issue.
- I've downloaded the RSD file from the server and confirmed that the query matches
- I've opened the RSD file locally from my TFS repository and confirmed that the query matches
- I've deployed the project to make sure it's not something wonky with my local environment; no change.
Any ideas? I can share the RSD file if you think it may help.
Thanks!