Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: Sequentially processing messages in Service Broker Queue

    ALTER QUEUE InstTargetQueue

    WITH ACTIVATION

    (

    STATUS = ON,

    PROCEDURE_NAME = usp_ExecutePackage,

    MAX_QUEUE_READERS = 20,

    EXECUTE AS 'dbo'

    );

    Do you mean to say i have...

  • RE: Sequentially processing messages in Service Broker Queue

    Here is the script of my Activation Proc:

    CREATE PROCEDURE [dbo].[usp_ExecutePackage]

    WITH EXECUTE AS 'dbo'

    AS

    BEGIN

    SET ARITHABORT ON

    set nocount on

    set xact_abort on

    DECLARE @PackageName VARCHAR(500)

    DECLARE @RecvReqDlgHandle UNIQUEIDENTIFIER;

    DECLARE @RecvReqMsg NVARCHAR(100);

    DECLARE @RecvReqMsgName sysname;

    BEGIN TRY

    BEGIN TRANSACTION;

    WAITFOR

    (...

Viewing 2 posts - 1 through 2 (of 2 total)