No fields for dynamic SQL stored procedure in SSRS with SET FMTONLY

前端 未结 7 1710
栀梦
栀梦 2020-12-17 15:00

I have the following SP which works correctly when ran on its own:

USE [Orders]
GO
SET FMTONLY OFF; 

CREATE PROCEDURE [dbo].[Get_Details_by_Type]

@isArchiv         


        
7条回答
  •  心在旅途
    2020-12-17 15:31

    Don't mean to revive a dead thread but was driving me crazy when upgrading our reports from SSRS 2005 to SSRS 2016 where Stored Procedures used openquery.

    We narrowed it down to reports that had fields with empty values in. So we added this at the start of the Stored Procedure:

    SET CONCAT_NULL_YIELDS_NULL OFF;
    

    which meant we didn't need to CAST every field.

提交回复
热议问题