Stored Procedures [dbo].[XLedgerGetNextEnqueuedJournalEntryBatchHeader]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
CREATE PROCEDURE [dbo].[XLedgerGetNextEnqueuedJournalEntryBatchHeader]
as
begin
    set nocount on
    select top 1
            QueueId = XLedgerJournalEntryBatchQueue.XLedgerJournalEntryBatchQueueId,
            JournalEntryBatchHeaderId = XLedgerJournalEntryBatch.XLedgerJournalEntryBatchId,
            [Description] = XLedgerJournalEntryBatch.[Description]
        from XLedgerJournalEntryBatchQueue
        inner join XLedgerJournalEntryBatch on
            XLedgerJournalEntryBatchQueue.XLedgerJournalEntryBatchFid = XLedgerJournalEntryBatch.XLedgerJournalEntryBatchId
        order by XLedgerJournalEntryBatchQueue.XLedgerJournalEntryBatchQueueId asc
end
GO
GRANT EXECUTE ON  [dbo].[XLedgerGetNextEnqueuedJournalEntryBatchHeader] TO [MssExec]
GO
Uses