Hi,When I run this SQl in SQL server 2000 it runs and returns the data. However, in reporting services it does not return any fields when I hit the refresh button. It does not give me an error either. I have been looking at this on line and I do not know what is wrong.Any ideas would be really appreciated. Note @CUNO, @Yr, @Mt are input parameters, that I have tryed not decaling and declaring and bothways does not work.Thank youMy code:DECLARE @CUNO intDECLARE @Yr nvarchar(4)SET @Yr = RIGHT(@Yr, 2) DECLARE @Mt nvarchar(5)IF LEN(@Mt) < 2 BEGINSET @Mt = '0' + @Mt END DECLARE @dt3 nvarchar(8)SET @dt3 = @Yr + @Mt DECLARE @TbHold nvarchar(10)SET @TbHold = 'RAP' + @dt3 DECLARE @strSQL nvarchar(2000)SET @strSQL = ' SELECT RACUST, RAACCT, RADATE, RATIME, RAOPHN, RTRIM(LTRIM(RACITY))+''/''+RTRIM(LTRIM((RASTAT))) as CITYSTATE, RATYPE, RADUR, RATREV, RAREV, RAAUTH, BillName, CASE WHEN RATYPE in (''8DI'',''8GI'',''8I'',''8X'',''8D'') THEN raauth ELSE RAPHN END AS RAPHN, RADATETIME FROM ' + @TbHold + ' LEFT OUTER JOIN CallTypes ON RATYPE = UsageName ' + ' WHERE RACUST = ' + Cast(@CUNO AS varchar(20)) + ' OR RACUST IN (SELECT distinct CGCUST FROM TCPCGCM WHERE CGCPCU = ' + Cast(@CUNO AS varchar(20)) + ')' PRINT @strSQL EXEC Sp_executeSql @strSQL