Data from integer column not displayed in SSRS report but data from string columns displayed.

Olutimi 5 Reputation points
2024-07-10T12:08:01.26+00:00

Hello All,

I Have a SSRS report that pulls data from and embedded query in a dataset. The query receives a date parameter and runs okay in SSMS.

The query refreshes okay in and generates the fields. However when I click preview report it displays all columns with string datatype but not field with integer datatype.

My query script in the dataset contains a temp table and the integer column comes from the temp table in the dataset. I have deleted the rdl data files but no change.

Please advice.

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,878 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Michael Taylor 86 Reputation points
    2024-07-10T15:32:59.0866667+00:00

    We're going to need to see the details. Please provide the query you're getting the data with, a sample of the data being returned and the designer code you're using to render the data.


  2. ZoeHui-MSFT 35,556 Reputation points
    2024-07-11T02:31:08.0133333+00:00

    Hi @Olutimi,

    It seems there is something wrong with the code you comment, please have a double check, i can only see the code as below.

    IF (1=0)
    BEGIN 
    SELECT 'Procedurename' as [ProcedureName], 'RowCNT' as [RowCnt], 'MissingProc' as [MissingProc], 'MissingTbl' as [MissingTbl]
    END
    IF OBJECT_ID('tempdb..#tblchk') IS NOT NULL DROP TABLE #tblchk SELECT DISTINCT s.procedurename, s.RowCNT
    

  3. Olutimi 5 Reputation points
    2024-07-11T08:21:47.26+00:00

    Script attached.


  4. Olutimi 5 Reputation points
    2024-07-11T12:53:44.1633333+00:00

    Script attached.

    0 comments No comments