From 425bdb4b9a80555b9beab8d72f7f805d4e665da4 Mon Sep 17 00:00:00 2001 From: Eitan Blumin Date: Thu, 3 Oct 2024 09:27:03 +0300 Subject: [PATCH] Fixed wrong variable name ArchiveTablePartitionFunctionName Fix #12 --- Utility Scripts/Partitioning/PartitionManagement_Archive.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utility Scripts/Partitioning/PartitionManagement_Archive.sql b/Utility Scripts/Partitioning/PartitionManagement_Archive.sql index 2ae8953..6e31eb1 100644 --- a/Utility Scripts/Partitioning/PartitionManagement_Archive.sql +++ b/Utility Scripts/Partitioning/PartitionManagement_Archive.sql @@ -193,7 +193,7 @@ BEGIN AND p.index_id <= 1 -- clustered or heap only AND p.object_id = OBJECT_ID(QUOTENAME(@ArchiveTableSchema) + N'.' + QUOTENAME(@ArchiveTableName)) - IF @ArchiveTablePartitionFunctionId IS NOT NULL + IF @ArchiveTablePartitionFunctionName IS NOT NULL BEGIN RAISERROR(N'Historical table "%s.%s" is using partition function "%s". This is an informational message.' ,0,1,@ArchiveTableSchema,@ArchiveTableName,@ArchiveTablePartitionFunctionName) WITH NOWAIT; @@ -277,4 +277,4 @@ SET @Msg = CONCAT(CONVERT(nvarchar(24), GETDATE(), 121), N' - Done.') RAISERROR(N'%s', 0,1, @Msg) WITH NOWAIT; END -GO \ No newline at end of file +GO