sqlcmd: C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\SQLCMD.EXE

===== STEP 1: Service + process state =====

Name             Status StartType
----             ------ ---------
MSSQL$AIMSQL    Running Automatic
SQLAgent$AIMSQL Stopped Automatic


MSSQL$AIMSQL PID (live from CIM): 12772
MSSQL$AIMSQL StartName (service account): LocalSystem


Id        : 12772
StartTime : 5/6/2026 2:30:02 AM
WSMB      : 172.2
VMMB      : 42241.5
PrivateMB : 528.6
Handles   : 636
Threads   : 63
CPU       : 1888.078125




===== STEP 2: Listening port + active TCP connections to AIMSQL =====
--- State summary ---

Name   Count
----   -----
Listen     2


--- Listening sockets ---

LocalAddress LocalPort
------------ ---------
::               63116
0.0.0.0          63116


--- Established connections (remote talking to AIMSQL) ---
(no established connections to AIMSQL right now)
--- UDP endpoints for this PID ---

===== STEP 3: Windows-auth sqlcmd to .\AIMSQL =====
Microsoft SQL Server 2019 (RTM-GDR) (KB5084817) - 15.0.2165.1 (X64) 
	Mar 13 2026 19:23:51 
	Copyright (C) 2019 Microsoft Corporation
	Express Edition (64-bit) on Windows Server 2016 Standard 10.0 <X64> (Build 14393: )

---
IMC1\AIMSQL AIMSQL Express Edition (64-bit) 15.0.2165.1 SQL_Latin1_General_CP1_CI_AS
loginOk=True

===== STEP 4: Databases on AIMSQL (sys.databases + sys.master_files) =====
--- sys.databases ---
master 1 ONLINE SIMPLE 2003-04-08 09:13:36.390 150
tempdb 2 ONLINE SIMPLE 2026-05-06 02:30:04.240 150
model 3 ONLINE SIMPLE 2003-04-08 09:13:36.390 150
msdb 4 ONLINE SIMPLE 2019-09-24 14:21:42.270 150
AIM 5 ONLINE SIMPLE 2023-06-09 10:33:41.147 150
TestConv61223 6 ONLINE SIMPLE 2023-06-12 22:31:05.510 150
IMC 7 ONLINE SIMPLE 2023-07-03 13:34:40.507 150
--- sys.master_files (user DBs only, database_id > 4) ---

===== STEP 4b: File-system DB enumeration (fallback / cross-check) - AIMSQL DATA dirs =====
--- DATA dir candidates ---
C:\Program Files\Microsoft SQL Server\MSSQL*.AIMSQL\MSSQL\DATA
C:\Program Files (x86)\Microsoft SQL Server\MSSQL*.AIMSQL\MSSQL\DATA
S:\*AIMSQL*\MSSQL\DATA
--- .mdf / .ldf / .ndf under AIMSQL DATA dirs ---

FullName                                                                       
--------                                                                       
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\master.mdf     
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\mastlog.ldf    
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\model.mdf      
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\modellog.ldf   
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\model_msdbda...
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\model_msdblo...
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\model_replic...
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\model_replic...
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\MSDBData.mdf   
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\MSDBLog.ldf    



===== STEP 5: Active sessions on AIMSQL =====
51 NT SERVICE\SQLTELEMETRY$AIMSQL IMC1 SQLServerCEIP .Net SqlClient Data Provider 2026-05-06 13:32:09.147 2026-05-06 13:32:09.203 sleeping <local machine>
52 NT AUTHORITY\SYSTEM IMC1 SQLCMD ODBC 2026-05-06 13:34:14.943 2026-05-06 13:34:14.943 running <local machine>

===== STEP 6: AIMSQL ERRORLOG location + tail =====

FullName                                                                LastWri
                                                                        teTime 
--------                                                                -------
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\Log\ERRORLOG 5/6/...


--- ERRORLOG path: C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\Log\ERRORLOG (LastWriteTime: 05/06/2026 02:30:04) ---
--- Tail 200 lines ---
2026-05-06 02:30:02.62 Server      Microsoft SQL Server 2019 (RTM-GDR) (KB5084817) - 15.0.2165.1 (X64) 
	Mar 13 2026 19:23:51 
	Copyright (C) 2019 Microsoft Corporation
	Express Edition (64-bit) on Windows Server 2016 Standard 10.0 <X64> (Build 14393: )

2026-05-06 02:30:02.62 Server      UTC adjustment: -7:00
2026-05-06 02:30:02.62 Server      (c) Microsoft Corporation.
2026-05-06 02:30:02.62 Server      All rights reserved.
2026-05-06 02:30:02.62 Server      Server process ID is 12772.
2026-05-06 02:30:02.62 Server      System Manufacturer: 'LENOVO', System Model: 'ThinkServer TS140'.
2026-05-06 02:30:02.62 Server      Authentication mode is MIXED.
2026-05-06 02:30:02.62 Server      Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\Log\ERRORLOG'.
2026-05-06 02:30:02.62 Server      The service account is 'IMC\IMC1$'. This is an informational message; no user action is required.
2026-05-06 02:30:02.62 Server      Registry startup parameters: 
	 -d C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\master.mdf
	 -e C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\Log\ERRORLOG
	 -l C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL\MSSQL\DATA\mastlog.ldf
2026-05-06 02:30:02.62 Server      Command Line Startup Parameters:
	 -s "AIMSQL"
2026-05-06 02:30:02.62 Server      SQL Server detected 1 sockets with 4 cores per socket and 4 logical processors per socket, 4 total logical processors; using 4 logical processors based on SQL Server licensing. This is an informational message; no user action is required.
2026-05-06 02:30:02.62 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2026-05-06 02:30:02.63 Server      Detected 32559 MB of RAM. This is an informational message; no user action is required.
2026-05-06 02:30:02.63 Server      Using conventional memory in the memory manager.
2026-05-06 02:30:02.63 Server      Page exclusion bitmap is enabled.
2026-05-06 02:30:02.65 Server      Buffer Pool: Allocating 8388608 bytes for 5099520 hashPages.
2026-05-06 02:30:02.68 Server      Default collation: SQL_Latin1_General_CP1_CI_AS (us_english 1033)
2026-05-06 02:30:02.77 Server      Buffer pool extension is already disabled. No action is necessary.
2026-05-06 02:30:02.91 Server      Query Store settings initialized with enabled = 1, 
2026-05-06 02:30:02.92 Server      The maximum number of dedicated administrator connections for this instance is '1'
2026-05-06 02:30:02.92 Server      This instance of SQL Server last reported using a process ID of 34536 at 5/6/2026 2:30:02 AM (local) 5/6/2026 9:30:02 AM (UTC). This is an informational message only; no user action is required.
2026-05-06 02:30:02.92 Server      Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2026-05-06 02:30:02.97 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
2026-05-06 02:30:02.99 Server      In-Memory OLTP initialized on lowend machine.
2026-05-06 02:30:03.02 Server      [INFO] Created Extended Events session 'hkenginexesession'

2026-05-06 02:30:03.02 Server      Database Instant File Initialization: enabled. For security and performance considerations see the topic 'Database Instant File Initialization' in SQL Server Books Online. This is an informational message only. No user action is required.
2026-05-06 02:30:03.03 Server      Total Log Writer threads: 2. This is an informational message; no user action is required.
2026-05-06 02:30:03.04 Server      clflush is selected for pmem flush operation.
2026-05-06 02:30:03.05 Server      CLR version v4.0.30319 loaded.
2026-05-06 02:30:03.05 Server      Software Usage Metrics is disabled.
2026-05-06 02:30:03.05 spid10s     Starting up database 'master'.
2026-05-06 02:30:03.17 Server      Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
2026-05-06 02:30:03.34 spid10s     SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2026-05-06 02:30:03.34 spid10s     SQL Server Audit has started the audits. This is an informational message. No user action is required.
2026-05-06 02:30:03.39 spid10s     SQL Trace ID 1 was started by login "sa".
2026-05-06 02:30:03.39 spid10s     Server name is 'IMC1\AIMSQL'. This is an informational message only. No user action is required.
2026-05-06 02:30:03.54 spid20s     A self-generated certificate was successfully loaded for encryption.
2026-05-06 02:30:03.54 spid20s     Server is listening on [ 'any' <ipv6> 63116].
2026-05-06 02:30:03.54 spid20s     Server is listening on [ 'any' <ipv4> 63116].
2026-05-06 02:30:03.54 spid20s     Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\AIMSQL ].
2026-05-06 02:30:03.54 spid20s     Server local connection provider is ready to accept connection on [ \\.\pipe\MSSQL$AIMSQL\sql\query ].
2026-05-06 02:30:03.54 spid20s     Dedicated administrator connection support was not started because it is disabled on this edition of SQL Server. If you want to use a dedicated administrator connection, restart SQL Server using the trace flag 7806. This is an informational message only. No user action is required.
2026-05-06 02:30:03.55 spid20s     SQL Server is now ready for client connections. This is an informational message; no user action is required.
2026-05-06 02:30:03.55 Server      SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational message. No user action is required.
2026-05-06 02:30:03.57 Server      The SQL Server Network Interface library successfully registered the Service Principal Name (SPN) [ MSSQLSvc/IMC1.IMC.local:AIMSQL ] for the SQL Server service.
2026-05-06 02:30:03.57 Server      The SQL Server Network Interface library successfully registered the Service Principal Name (SPN) [ MSSQLSvc/IMC1.IMC.local:63116 ] for the SQL Server service.
2026-05-06 02:30:03.73 spid21s     A new instance of the full-text filter daemon host process has been successfully started.
2026-05-06 02:30:03.83 spid10s     Starting up database 'msdb'.
2026-05-06 02:30:03.83 spid14s     Starting up database 'mssqlsystemresource'.
2026-05-06 02:30:03.85 spid14s     The resource database build version is 15.00.2165. This is an informational message only. No user action is required.
2026-05-06 02:30:03.94 spid14s     Starting up database 'model'.
2026-05-06 02:30:04.00 spid14s     Clearing tempdb database.
2026-05-06 02:30:04.13 spid14s     Starting up database 'tempdb'.
2026-05-06 02:30:04.24 spid24s     The Service Broker endpoint is in disabled or stopped state.
2026-05-06 02:30:04.24 spid24s     The Database Mirroring endpoint is in disabled or stopped state.
2026-05-06 02:30:04.26 spid24s     Service Broker manager has started.
2026-05-06 02:30:04.26 spid10s     Recovery is complete. This is an informational message only. No user action is required.

===== STEP 7: Memory cap (sp_configure read-only) =====
max server memory (MB) 2147483647 2147483647 128 2147483647
min server memory (MB) 0 16 0 2147483647
show advanced options 1 1 0 1

===== STEP 8: Sanity - AIMSQL backup folders + .bak files =====
--- AIMSQL-named directories ---

FullName                                                                       
--------                                                                       
C:\Program Files\Microsoft SQL Server\MSSQL15.AIMSQL                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20221005_191710\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20230502_074935\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20240609_182847\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20240709_221338\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20240911_001844\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20241015_064603\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20241201_210046\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20250708_190212\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20250813_063407\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20250910_043435\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20251111_162854\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20260321_220916\AIMSQL                                           
C:\Program Files\Microsoft SQL Server\150\Setup                                
Bootstrap\Log\20260425_213421\AIMSQL                                           


--- .bak files under AIMSQL Backup dirs ---

===== TASK 2: Unregister AIMSQL_Restart_20260506_0230 scheduled task =====
Found task - last run: 05/06/2026 02:30:30, result: 0, next run: 
Unregistered successfully.
--- Confirm gone ---
Confirmed: task no longer registered.

===== TASK 2b: Audit-trail artifacts (do NOT delete) =====
--- aimsql-restart.ps1 ---


FullName      : C:\Windows\Temp\aimsql-restart.ps1
Length        : 984
LastWriteTime : 5/5/2026 6:53:27 PM



--- aimsql-restart.log ---


FullName      : C:\Windows\Temp\aimsql-restart.log
Length        : 1150
LastWriteTime : 5/6/2026 2:30:19 AM




===== DONE =====
Completed at: 2026-05-06 13:34:21 -07:00
