RosettaNet PipAutomationGetAction

CREATE PROCEDURE PipAutomationGetAction
AS
 SET TRANSACTION ISOLATION LEVEL READ COMMITTED
BEGIN TRANSACTION
DECLARE @tempGUID nvarchar(36)
SELECT TOP 1 @tempGUID = MessageID FROM MessagesToLOB WITH (READPAST,UPDLOCK,ROWLOCK)
   WHERE Delivered = 0 AND MessageCategory = 10
  ORDER BY TimeCreated
  SELECT PIPInstanceID,DestinationPartyName,SourcePartyName,PIPCode,PIPVersion, ServiceContent FROM MessagesToLOB
   WHERE MessageID = @tempGUID
For xml auto
UPDATE MessagesToLOB SET Delivered = 1 WHERE MessageID = @tempGUID
COMMIT TRANSACTION
GO

 

设置SQL Adapter pollWhileDataFound = true

(Specify whether to submit additional batches until the stored procedure or query returns no results, or submit a single stored procedure or query result for each polling interval.)

 

Note:

If you create two or more SQL adapter receive locations against the same SQL database, BizTalk Server will generate the same URI property for both. Because BizTalk Server does not allow for duplicate URI properties, you must manually change the properties so that they are unique. For example, if you have two receive locations that each have a URI value of SQL://./Northwind/, leave one of them as SQL://./Northwind/ and change the other to SQL://./Northwind/Secondary/. This value appears in the SQL Transport Properties dialog box, when configuring a receive location in the BizTalk Server Administration Console.

你可能感兴趣的:(automation)