UFN_AMPROIMPORT_BATCHROWISEXCEPTIONBATCH

Returns true if an AuctionMaestro Pro import batch is in an exception batch.

Return

Return Type
bit

Parameters

Parameter Parameter Type Mode Description
@BATCHROWID uniqueidentifier IN

Definition

Copy


            create function dbo.UFN_AMPROIMPORT_BATCHROWISEXCEPTIONBATCH
            (
                @BATCHROWID uniqueidentifier
            )
            returns bit
            as
            begin
                if exists    (    select BATCHAMPROIMPORT.ID
                                from dbo.BATCHAMPROIMPORT 
                                inner join dbo.BATCH on BATCH.ID = BATCHAMPROIMPORT.BATCHID 
                                where BATCH.ORIGINATINGBATCHID is not null 
                                    and BATCHAMPROIMPORT.ID = @BATCHROWID
                            )
                    return 1;
                return 0;    
            end