I am using Visual Studio 2012, Oracle 11g and SSRS 2012.
I have developed a report that checks the session USERID to determine if they can view the report or not against a table stored in an Oracle DB.
Everything works correctly in Preview mode for Visual Studio 2012; however, when the report is deployed to SSRS 2012 data is not returned, and this would be expected if the US.
SELECT COMP_FLAG, MBR_MMIS_IDNTFR, LAST_NAME, FIRST_NAME, MIDDLE_NAME, ORG_CODE, ORG_NAME, ORG_PHONE, LAST_VERIFIED_DATE, RAC_START,RAC_END, RAC_CODE
FROM TPL_CHIP_MV
WHERE (COMP_FLAG <> 'N')
AND (1 =(SELECT COUNT(USER_ID) AS EXPR1
FROM REPORT_AUTH
WHERE (USER_ID = CONCAT('HLAN\',UPPER (SYS_CONTEXT'USERENV', 'OS_USER'))))))
Why does this work correctly in Visual Studio 2012 Preview Mode and not in SSRS 2012? What can I do to get this to work in SSRS?