简体   繁体   中英

SSRS report dataset creation not showing my procedure

strong text在此处输入图像描述

Trying to add dataset to my report but cant find my procedure in the list I added my query to a different proc to check and I cant see fields is there anything wrong with the query?

ALTER  PROCEDURE [dbo].[CV_RPT_ReciptSummary] 
    (@i_days int)
AS 
    SET FMTONLY ON
    SET NOCOUNT ON

BEGIN
    SELECT --COUNT(EN_PK) as total,
        DE_Comments, 
        EN_FirstName, EN_LastName, 
        ISNULL(DE_Offender_Paid, 0) AS DE_Offender_Paid,
        DE_Rest_Amt, OS_Type, DE_FK_CL, CL_Number 
    FROM
        CV_Debt_Offender 
    INNER JOIN
        CV_ENTITY ON DE_FK_Offender_EN = en_PK
    INNER JOIN
        CV_CLAIMS ON CL_PK = DE_FK_CL 
    LEFT OUTER JOIN
        CV_Offender_Status ON OS_PK = DE_FK_Offender_Status  
END

After trying lot of different ways, finally this is what worked for me. ADD new item to solution create new dataset in solution and drag stored procedure from server explorer and then use this.xsd file to replace dataset in report and that did. Still cant figure out why its not in the list to create a dataset directly from report.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM