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;
14515
+
END
14516
+
14503
14517
14504
14518
/* Apply the sort order here to only grab relevant plans.
14505
14519
This should make it faster to process since we'll be pulling back fewer
@@ -14551,6 +14565,7 @@ SET @body += N') AS qs
14551
14565
14552
14566
SET @body_where += N' AND pa.attribute = ' + QUOTENAME('dbid', @q ) + @nl ;
14553
14567
14568
+
14554
14569
IF @NoobSaibot = 1
14555
14570
BEGIN
14556
14571
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
27981
1 AS [Display Order]
27974
27982
FROM #IndexSanity AS i
27975
27983
LEFT JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
@@ -28197,8 +28205,8 @@ BEGIN
28197
28205
SET NOCOUNT ON;
28198
28206
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
28199
28207
28200
-
SET @Version = '2.3';
28201
-
SET @VersionDate = '20190219';
28208
+
SET @Version = '2.4';
28209
+
SET @VersionDate = '20190320';
28202
28210
28203
28211
28204
28212
IF(@VersionCheckMode = 1)
@@ -29460,8 +29468,8 @@ BEGIN /*First BEGIN*/
29460
29468
SET NOCOUNT ON;
29461
29469
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
29462
29470
29463
-
SET @Version = '3.3';
29464
-
SET @VersionDate = '20190219';
29471
+
SET @Version = '3.4';
29472
+
SET @VersionDate = '20190320';
29465
29473
IF(@VersionCheckMode = 1)
29466
29474
BEGIN
29467
29475
RETURN;
@@ -35186,8 +35194,8 @@ BEGIN
35186
35194
SET NOCOUNT ON;
35187
35195
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
35188
35196
35189
-
SET @Version = '7.3';
35190
-
SET @VersionDate = '20190219';
35197
+
SET @Version = '7.4';
35198
+
SET @VersionDate = '20190320';
35191
35199
35192
35200
IF(@VersionCheckMode = 1)
35193
35201
BEGIN
@@ -36073,8 +36081,8 @@ SET NOCOUNT ON;
36073
36081
36074
36082
/*Versioning details*/
36075
36083
36076
-
SET @Version = '7.3';
36077
-
SET @VersionDate = '20190219';
36084
+
SET @Version = '7.4';
36085
+
SET @VersionDate = '20190320';
36078
36086
36079
36087
IF(@VersionCheckMode = 1)
36080
36088
BEGIN
@@ -36865,6 +36873,11 @@ BEGIN
36865
36873
FROM #Headers
36866
36874
WHERE BackupType = 5;
36867
36875
END;
36876
+
36877
+
IF @DiffLastLSN IS NULL
36878
+
BEGIN
36879
+
SET @DiffLastLSN=@FullLastLSN
36880
+
END
36868
36881
END
36869
36882
36870
36883
@@ -37001,7 +37014,7 @@ IF (@StopAt IS NOT NULL AND @OnlyLogsAfter IS NULL)
37001
37014
FROM @FileList
37002
37015
WHERE BackupFile LIKE N'%.trn'
37003
37016
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)
37017
+
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
37018
ORDER BY BackupFile;
37006
37019
37007
37020
OPEN BackupFiles;
@@ -37189,8 +37202,8 @@ ALTER PROCEDURE dbo.sp_foreachdb
0 commit comments