SQLTeam.com | Weblogs | Forums

Ssrs 2012 displays data inconsistently


#1

On an existing ssrs 2012 report, the report displays values inconsistently on the production report server. In all cases when I execute the sql in sql server management studio 2012, the query always returns values. This report runs fine on the test report server. However I am having problems on the production report server.

Thus can you tell me what I can do to see what error messages are displayed? Would you give me suggestions on what I can try?


#2

Not sure it will help, but it might point you at a cause / diagnosis, this is where I would start:

I would run SQL Profiler to see what SQL commands SSRS is issuing. That will also show you the CPU time, number or reads/writes etc and Row Count. You could compare that with the results you see on TEST to see if they are wildly different, for example.

You could also take a snippet of SQL [i.e. the actual SQL that SSRS sends to SQL] and run that on the PRODUCTION server in order to view the Query Plan etc. That might lead you to an index missing (although that won't ... SHOULDN'T??!! ... effect Data Quality), or some dynamic SQL which SSRS is generating differently on Production than it did on Test (and that could well deliver different results).

If you have the least suspicion that the Production Database might be corrupted, particularly if your database housekeeping doesn't routinely include regular data consistency checks, run a DBCC CHECKDB with ALL the options turned on (e.g. including DATA_PURITY(sp??) )