Integration.GetLastETLCutoffTime
Documentation | WideWorldImportersDW |
Schema | Integration |
Name | GetLastETLCutoffTime |
Helper procedures for the ETL package
Input/Output
Mode | Name | Data type | Description | |
---|---|---|---|---|
1 | IN | TableName | nvarchar(128) |
Script
CREATE PROCEDURE Integration.GetLastETLCutoffTime @TableName sysname WITH EXECUTE AS OWNER AS BEGIN SET NOCOUNT ON; SET XACT_ABORT ON; SELECT [Cutoff Time] AS CutoffTime FROM Integration.[ETL Cutoff] WHERE [Table Name] = @TableName; IF @@ROWCOUNT = 0 BEGIN PRINT N'Invalid ETL table name'; THROW 51000, N'Invalid ETL table name', 1; RETURN -1; END; RETURN 0; END; |
Exported: 2019-02-04 23:05, Last imported: 2018-08-10 09:59