I have 50 Biztalk packages and I need to log in a separate table when the package executes.
I am very aware that Biztalk database keeps a log, therefore don't provide that as a solution.
My table definition:
CREATE TABLE [dbo].[BiztalkLog]
(
[ID] [int] IDENTITY(1,1) NOT NULL,
[BiztalkPackageID] [int] NULL,
[RunDate] [datetime] NULL,
CONSTRAINT [PK_BiztalkLog]
PRIMARY KEY CLUSTERED ([ID] ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,
IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
My stored procedure:
CREATE PROCEDURE [dbo].[InsertBiztalkLog]
@BiztalkPackageID AS INT
AS
INSERT INTO dbo.BiztalkLog(BiztalkPackageID)
SELECT @BiztalkPackageID
GO
Questions:
How do I hard code the
BiztalkPackageID
value inside the orchestration? So when the stored procedure executes once, it will know which value to pass.How do you execute a stored procedure only once inside an orchestration?