recator placement of code

This commit is contained in:
2026-02-17 11:46:57 -06:00
parent 31f8c368d9
commit 23c000fa7f
77 changed files with 4528 additions and 2697 deletions

View File

@@ -0,0 +1,16 @@
DECLARE @UptimeSeconds INT;
DECLARE @StartTime DATETIME;
SELECT @StartTime = sqlserver_start_time FROM sys.dm_os_sys_info;
SET @UptimeSeconds = DATEDIFF(SECOND, @StartTime, GETDATE());
SELECT
@StartTime AS [Server Start Time],
GETDATE() AS [Current Time],
@UptimeSeconds AS [UptimeSeconds],
@UptimeSeconds / 86400 AS [Days],
(@UptimeSeconds % 86400) / 3600 AS [Hours],
(@UptimeSeconds % 3600) / 60 AS [Minutes],
(@UptimeSeconds % 60) AS [Seconds];