Skip to content

Commit 582f64f

Browse files
author
Darling Data
committed
Automation: Format and Build SQL File
1 parent 08423e5 commit 582f64f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Install-All/DarlingData.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Compile Date: 02/15/2026 14:08:02 UTC
1+
-- Compile Date: 02/15/2026 15:13:30 UTC
22
SET ANSI_NULLS ON;
33
SET ANSI_PADDING ON;
44
SET ANSI_WARNINGS ON;
@@ -433,7 +433,7 @@ AND ca.utc_timestamp < @end_date';
433433
SET @time_filter = N'
434434
AND CONVERT(datetimeoffset(7), fx.timestamp_utc) BETWEEN @start_date AND @end_date';
435435
ELSE
436-
SET @time_filter = '
436+
SET @time_filter = N'
437437
AND fx.timestamp_utc BETWEEN @start_date AND @end_date';
438438
END;
439439

@@ -12493,7 +12493,7 @@ BEGIN
1249312493
IF @debug = 1
1249412494
BEGIN
1249512495
SELECT
12496-
table_name = '#blocking_sh',
12496+
table_name = '#blocking_xml_sh',
1249712497
bxs.*
1249812498
FROM #blocking_xml_sh AS bxs
1249912499
OPTION(RECOMPILE);
@@ -24714,11 +24714,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2471424714
END
2471524715
),
2471624716
@server_uptime_hours =
24717-
DATEDIFF(SECOND, osi.sqlserver_start_time, GETDATE()) / 3600.0
24717+
DATEDIFF(SECOND, osi.sqlserver_start_time, SYSDATETIME()) / 3600.0
2471824718
FROM sys.dm_os_wait_stats AS osw
2471924719
CROSS JOIN sys.dm_os_sys_info AS osi
2472024720
GROUP BY
24721-
DATEDIFF(SECOND, osi.sqlserver_start_time, GETDATE()) / 3600.0;
24721+
DATEDIFF(SECOND, osi.sqlserver_start_time, SYSDATETIME()) / 3600.0;
2472224722

2472324723
SET @pagelatch_ratio_to_uptime =
2472424724
@pagelatch_wait_hours / NULLIF(@server_uptime_hours, 0) * 100;
@@ -31750,7 +31750,7 @@ OPTION(MAXDOP 1, RECOMPILE);',
3175031750

3175131751
IF @debug = 1
3175231752
BEGIN
31753-
PRINT SUBSTRING(@cpu_sql, 0, 4000);
31753+
PRINT SUBSTRING(@cpu_sql, 1, 4000);
3175431754
PRINT SUBSTRING(@cpu_sql, 4001, 8000);
3175531755
END;
3175631756

@@ -32105,7 +32105,7 @@ OPTION(MAXDOP 1, RECOMPILE);',
3210532105
bi.wait_resource,
3210632106
reads = ISNULL(der.reads, 0),
3210732107
writes = ISNULL(der.writes, 0),
32108-
physical_reads = ISNULL(der.logical_reads, bi.physical_io),
32108+
logical_reads = ISNULL(der.logical_reads, bi.physical_io),
3210932109
cpu_time = ISNULL(der.cpu_time, bi.cpu_time),
3211032110
used_memory = ISNULL(der.granted_query_memory, bi.memusage),
3211132111
bi.status,

0 commit comments

Comments
 (0)