Skip to content

Commit f01ddb3

Browse files
BrentOzarclaude
andcommitted
sp_BlitzIndex: remove inner version gate that blocked Azure SQL DB
The in-procedure version check (ProductVersion <= 12) would block Azure SQL DB which reports major version 12.x. The pre-procedure gate already enforces the minimum version while allowing Azure (EngineEdition 5/6/8), matching the sp_Blitz pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fccc69d commit f01ddb3

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

sp_BlitzIndex.sql

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,16 +1466,6 @@ BEGIN TRY
14661466
DECLARE @d VARCHAR(19) = CONVERT(VARCHAR(19), GETDATE(), 121);
14671467
RAISERROR (N'starting at %s',0,1, @d) WITH NOWAIT;
14681468

1469-
--Validate SQL Server Version
1470-
1471-
IF (SELECT LEFT(@SQLServerProductVersion,
1472-
CHARINDEX('.',@SQLServerProductVersion,0)-1
1473-
)) <= 12
1474-
BEGIN
1475-
SET @msg=N'sp_BlitzIndex is only supported on SQL Server 2016 and higher. The version of this instance is: ' + @SQLServerProductVersion;
1476-
RAISERROR(@msg,16,1);
1477-
END;
1478-
14791469
--Short circuit here if database name does not exist.
14801470
IF @DatabaseName IS NULL OR @DatabaseID IS NULL
14811471
BEGIN

0 commit comments

Comments
 (0)