USP_REPORT_BBNCDONATIONBATCHCONTROLREPORT

Returns the data necessary for the Blackbaud Internet Solutions Donation Batch Control report.

Parameters

Parameter Parameter Type Mode Description
@BATCHID uniqueidentifier IN

Definition

Copy


            CREATE procedure dbo.USP_REPORT_BBNCDONATIONBATCHCONTROLREPORT
            (
                @BATCHID uniqueidentifier
            )
            with execute as owner
            as
                set nocount on;

                declare @TABLENAME nvarchar(128);

                select @TABLENAME = dbo.UFN_BATCH_GETREPORTTABLENAME(@BATCHID, 0)

                declare @SQLTOEXEC nvarchar(400);

                set @SQLTOEXEC = N'set nocount on;            
                    select 
                        ID,
                        CONSTITUENTNAME,
                        AMOUNT,
            ISO4217,
            DECIMALDIGITS,
                      CURRENCYSYMBOL,
                      SYMBOLDISPLAYSETTINGCODE 
                    from dbo.' + @TABLENAME;
                exec sp_executesql @SQLTOEXEC;