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

    declare @now datetimeoffset = sysdatetimeoffset()

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