File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -856,8 +856,7 @@ BEGIN
856856 OR e .x .exist(' @name[ .= "database_xml_deadlock_report"]' ) = 1
857857 OR e .x .exist(' @name[ .= "xml_deadlock_report_filtered"]' ) = 1
858858 )
859- AND e .x .exist(' @timestamp[. >= sql:variable("@StartDate")]' ) = 1
860- AND e .x .exist(' @timestamp[. < sql:variable("@EndDate")]' ) = 1
859+ AND e .x .exist(' @timestamp[. >= sql:variable("@StartDate") and .< sql:variable("@EndDate")]' ) = 1
861860 OPTION(RECOMPILE);
862861
863862 SET @d = CONVERT (varchar (40 ), GETDATE(), 109 );
@@ -894,8 +893,7 @@ BEGIN
894893 OR e .x .exist(' @name[ .= "database_xml_deadlock_report"]' ) = 1
895894 OR e .x .exist(' @name[ .= "xml_deadlock_report_filtered"]' ) = 1
896895 )
897- AND e .x .exist(' @timestamp[. >= sql:variable("@StartDate")]' ) = 1
898- AND e .x .exist(' @timestamp[. < sql:variable("@EndDate")]' ) = 1
896+ AND e .x .exist(' @timestamp[. >= sql:variable("@StartDate") and .< sql:variable("@EndDate")]' ) = 1
899897 OPTION(RECOMPILE);
900898
901899 IF @Debug = 1 BEGIN SET STATISTICS XML OFF; END;
@@ -931,8 +929,7 @@ BEGIN
931929 ) AS xml
932930 CROSS APPLY xml .deadlock_xml .nodes(' /event' ) AS e(x)
933931 WHERE 1 = 1
934- AND e .x .exist(' @timestamp[. >= sql:variable("@StartDate")]' ) = 1
935- AND e .x .exist(' @timestamp[. < sql:variable("@EndDate")]' ) = 1
932+ AND e .x .exist(' @timestamp[. >= sql:variable("@StartDate") and .< sql:variable("@EndDate")]' ) = 1
936933 OPTION(RECOMPILE);
937934
938935 INSERT
You can’t perform that action at this time.
0 commit comments