You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SET @body_where += N' AND CAST(qp.query_plan AS NVARCHAR(MAX)) LIKE ''%' + @SlowlySearchPlansFor + '%'' ' + @nl;
14521
+
END
14522
+
14503
14523
14504
14524
/* Apply the sort order here to only grab relevant plans.
14505
14525
This should make it faster to process since we'll be pulling back fewer
@@ -14551,6 +14571,7 @@ SET @body += N') AS qs
14551
14571
14552
14572
SET @body_where += N' AND pa.attribute = ' + QUOTENAME('dbid', @q ) + @nl ;
14553
14573
14574
+
14554
14575
IF @NoobSaibot = 1
14555
14576
BEGIN
14556
14577
SET @body_where += N' AND qp.query_plan.exist(''declare namespace p="http://schemas.microsoft.com/sqlserver/2004/07/showplan";//p:StmtSimple//p:MissingIndex'') = 1' + @nl ;
ELSE N''--'' + ict.create_tsql END AS [Create TSQL],
27973
27989
1 AS [Display Order]
27974
27990
FROM #IndexSanity AS i
27975
27991
LEFT JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
@@ -28199,6 +28215,8 @@ SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
28199
28215
28200
28216
SET @Version = '2.3';
28201
28217
SET @VersionDate = '20190219';
28218
+
SET @Version = '2.4';
28219
+
SET @VersionDate = '20190320';
28202
28220
28203
28221
28204
28222
IF(@VersionCheckMode = 1)
@@ -29460,8 +29478,8 @@ BEGIN /*First BEGIN*/
29460
29478
SET NOCOUNT ON;
29461
29479
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
29462
29480
29463
-
SET @Version = '3.3';
29464
-
SET @VersionDate = '20190219';
29481
+
SET @Version = '3.4';
29482
+
SET @VersionDate = '20190320';
29465
29483
IF(@VersionCheckMode = 1)
29466
29484
BEGIN
29467
29485
RETURN;
@@ -35186,8 +35204,8 @@ BEGIN
35186
35204
SET NOCOUNT ON;
35187
35205
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
35188
35206
35189
-
SET @Version = '7.3';
35190
-
SET @VersionDate = '20190219';
35207
+
SET @Version = '7.4';
35208
+
SET @VersionDate = '20190320';
35191
35209
35192
35210
IF(@VersionCheckMode = 1)
35193
35211
BEGIN
@@ -36073,8 +36091,8 @@ SET NOCOUNT ON;
36073
36091
36074
36092
/*Versioning details*/
36075
36093
36076
-
SET @Version = '7.3';
36077
-
SET @VersionDate = '20190219';
36094
+
SET @Version = '7.4';
36095
+
SET @VersionDate = '20190320';
36078
36096
36079
36097
IF(@VersionCheckMode = 1)
36080
36098
BEGIN
@@ -36865,6 +36883,11 @@ BEGIN
36865
36883
FROM #Headers
36866
36884
WHERE BackupType = 5;
36867
36885
END;
36886
+
36887
+
IF @DiffLastLSN IS NULL
36888
+
BEGIN
36889
+
SET @DiffLastLSN=@FullLastLSN
36890
+
END
36868
36891
END
36869
36892
36870
36893
@@ -37001,7 +37024,7 @@ IF (@StopAt IS NOT NULL AND @OnlyLogsAfter IS NULL)
37001
37024
FROM @FileList
37002
37025
WHERE BackupFile LIKE N'%.trn'
37003
37026
AND BackupFile LIKE N'%' + @Database + N'%'
37004
-
AND (@ContinueLogs = 1 OR (@ContinueLogs = 0 AND REPLACE(LEFT(RIGHT(BackupFile, 19), 15),'_','') >= @BackupDateTime) AND REPLACE(LEFT(RIGHT(BackupFile, 19), 15),'_','') <= @StopAt)
37027
+
AND ((@ContinueLogs = 1 AND REPLACE(LEFT(RIGHT(BackupFile, 19), 15),'_','') <= @StopAt) OR (@ContinueLogs = 0 AND REPLACE(LEFT(RIGHT(BackupFile, 19), 15),'_','') >= @BackupDateTime) AND REPLACE(LEFT(RIGHT(BackupFile, 19), 15),'_','') <= @StopAt)
37005
37028
ORDER BY BackupFile;
37006
37029
37007
37030
OPEN BackupFiles;
@@ -37189,8 +37212,8 @@ ALTER PROCEDURE dbo.sp_foreachdb
0 commit comments