Skip to content

Commit be47e91

Browse files
committed
Update omd.RunModule.sql
1 parent 2822fdd commit be47e91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

020_DIRECT_Framework/Direct_Framework/Stored Procedures/omd.RunModule.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ BEGIN
8282
SET @Query = REPLACE(@Query,'@ModuleInstanceId', @ModuleInstanceId)
8383

8484
-- Run the code
85+
DECLARE @RowCount NUMERIC(38)
8586
EXEC(@Query);
87+
SET @RowCount = @@ROWCOUNT;
8688

89+
IF @Debug = 'Y' PRINT 'The returned row count is ' +CONVERT(VARCHAR(10),@RowCount)
8790
/*
8891
Wrap up
8992
*/
@@ -94,6 +97,7 @@ BEGIN
9497
-- Module Success
9598
EXEC [omd].[UpdateModuleInstance]
9699
@ModuleInstanceId = @ModuleInstanceId,
100+
@RowCountInsert = @RowCount,
97101
@Debug = @Debug,
98102
@EventCode = 'Success'
99103

@@ -107,6 +111,7 @@ BEGIN
107111
-- Module Failure
108112
EXEC [omd].[UpdateModuleInstance]
109113
@ModuleInstanceId = @ModuleInstanceId,
114+
@RowCountInsert = @RowCount,
110115
@Debug = @Debug,
111116
@EventCode = 'Failure';
112117

0 commit comments

Comments
 (0)