Stored Procedures [dbo].[XLedgerMarkConfigSyncAsFailure]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@syncHistoryIdsIntListmax
@failureMessagevarchar(max)max
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
CREATE PROCEDURE [dbo].[XLedgerMarkConfigSyncAsFailure]
    @syncHistoryIds IntList readonly,
    @failureMessage varchar(max)
AS
begin
    set nocount on

    declare @now datetimeoffset = sysdatetimeoffset()

    update XLedgerOnDemandSyncHistory set
        FailureMessage = @failureMessage
    from @syncHistoryIds Ids
    inner join XLedgerOnDemandSyncHistory on Ids.Item = XLedgerOnDemandSyncHistory.XLedgerOnDemandSyncHistoryId
end
GO
GRANT EXECUTE ON  [dbo].[XLedgerMarkConfigSyncAsFailure] TO [MssExec]
GO
Uses