Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions DatabaseIntegrityCheck.sql
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ BEGIN
SET @HostPlatform = 'Windows'
END

DECLARE @AmazonRDS bit = CASE WHEN DB_ID('rdsadmin') IS NOT NULL AND SUSER_SNAME(0x01) = 'rdsa' THEN 1 ELSE 0 END

----------------------------------------------------------------------------------------------------
--// Log initial information //--
----------------------------------------------------------------------------------------------------
Expand Down
9 changes: 0 additions & 9 deletions IndexOptimize.sql
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ BEGIN
DECLARE @CurrentAvailabilityGroupRole nvarchar(max)
DECLARE @CurrentDatabaseMirroringRole nvarchar(max)

DECLARE @CurrentDatabaseContext nvarchar(max)
DECLARE @CurrentCommand nvarchar(max)
DECLARE @CurrentCommandOutput int
DECLARE @CurrentCommandType nvarchar(max)
Expand Down Expand Up @@ -271,8 +270,6 @@ BEGIN
SET @HostPlatform = 'Windows'
END

DECLARE @AmazonRDS bit = CASE WHEN DB_ID('rdsadmin') IS NOT NULL AND SUSER_SNAME(0x01) = 'rdsa' THEN 1 ELSE 0 END

----------------------------------------------------------------------------------------------------
--// Log initial information //--
----------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -2067,8 +2064,6 @@ BEGIN

IF @CurrentIndexID IS NOT NULL AND @CurrentAction IS NOT NULL AND (SYSDATETIME() < DATEADD(SECOND,@TimeLimit,@StartTime) OR @TimeLimit IS NULL)
BEGIN
SET @CurrentDatabaseContext = @CurrentDatabaseName

SET @CurrentCommandType = 'ALTER_INDEX'

SET @CurrentCommand = ''
Expand Down Expand Up @@ -2213,8 +2208,6 @@ BEGIN

IF @CurrentStatisticsID IS NOT NULL AND @CurrentUpdateStatistics = 'Y' AND (SYSDATETIME() < DATEADD(SECOND,@TimeLimit,@StartTime) OR @TimeLimit IS NULL)
BEGIN
SET @CurrentDatabaseContext = @CurrentDatabaseName

SET @CurrentCommandType = 'UPDATE_STATISTICS'

SET @CurrentCommand = ''
Expand Down Expand Up @@ -2299,8 +2292,6 @@ BEGIN
AND ID = @CurrentIxID

-- Clear variables
SET @CurrentDatabaseContext = NULL

SET @CurrentCommand = NULL
SET @CurrentCommandOutput = NULL
SET @CurrentCommandType = NULL
Expand Down