Skip to content

Commit

Permalink
Fixed wrong variable name ArchiveTablePartitionFunctionName
Browse files Browse the repository at this point in the history
Fix #12
  • Loading branch information
EitanBlumin authored Oct 3, 2024
1 parent 53a689d commit 425bdb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utility Scripts/Partitioning/PartitionManagement_Archive.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -277,4 +277,4 @@ SET @Msg = CONCAT(CONVERT(nvarchar(24), GETDATE(), 121), N' - Done.')
RAISERROR(N'%s', 0,1, @Msg) WITH NOWAIT;

END
GO
GO

0 comments on commit 425bdb4

Please sign in to comment.