You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.4 KiB
30 lines
1.4 KiB
USE [FastMoneyPro_Remit]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[proc_pushCancelToInficare] Script Date: 9/27/2019 1:30:14 PM ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE proc [dbo].[proc_pushCancelToInficare]
|
|
|
|
AS
|
|
|
|
DECLARE @SQL VARCHAR(MAX)
|
|
|
|
SET @SQL = ''
|
|
|
|
IF EXISTS(SELECT TOP 1 'X' FROM domesticCancelQueueList WITH(NOLOCK))
|
|
BEGIN
|
|
SELECT TOP 50
|
|
@SQL = COALESCE(@SQL + ' EXEC sp_pushCancel ', '') + '''' + ISNULL(controlNo, '') + '''' FROM domesticCancelQueueList WITH(NOLOCK)
|
|
|
|
PRINT @SQL
|
|
EXEC (@SQL)
|
|
|
|
DELETE FROM domesticCancelQueueList
|
|
FROM domesticCancelQueueList ql
|
|
INNER JOIN hremit.dbo.cancelmoneySend cms ON ql.controlNoInficareEnc = cms.refno
|
|
END
|
|
|
|
|
|
GO
|