sqlinsight-pro/SQL Scripts/_collectors
Søren Eggert Lundsteen Olsen 3a0bbe22f1 Review 1.4: SQL Scripts for Dynamics AX in the 1.3 structure
The AX scripts written in 1.4 (own header style and a generator) now follow
main's "SQL Scripts" structure: the review header, "-- Kilde:" blocks
registered in SqlScriptSources and checked word for word against the code.

- SqlScriptSources: the shared AX detection (DatabasesSql, LoginSql,
  BuildDetectionSql), companies, batch jobs, batch history (first read and
  from the watermark) and number sequences / RecId for Axapta 3.0, AX 4.0,
  AX 2009 and AX 2012; BlockingCollector split 2008 / 2005, as CONTEXT_INFO
  comes from sys.dm_exec_sessions from 2008 and from sysprocesses on 2005.
- SQLI-AX-001..010 and _collectors/Ax*.sql in main's format; COM-AX-001..007
  with the 1.4 queries, the AX detection and USE [AXDB]; BLK-001,
  BlockingCollector and DatabaseDiscovery updated (CONTEXT_INFO,
  sp_executesql).
- Scripts_are_read_only stays strict (no INTO #temp anywhere) and now also
  checks the batch inside EXEC [db].sys.sp_executesql N'...'.
- SQLINSIGHT_UPDATE_SQL_SCRIPTS=1 (from 1.4) rewrites out-of-date blocks from
  the code; the 1.4 generator test now checks that every AX script shows its
  sources for every AX version and says what is unverified.
- README: SQLI-AX-001..010, the AX collector scripts, 108 rules.
- AxDatabaseDetector: LoginSql and BuildDetectionSql as members, so the
  registry sees them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 14:11:45 +02:00
..
ActivityCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
AgentJobCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
AvailabilityGroupCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
AxBatchCollector.sql Review 1.4: SQL Scripts for Dynamics AX in the 1.3 structure 2026-10-02 14:11:45 +02:00
AxDatabaseDetector.sql Review 1.4: SQL Scripts for Dynamics AX in the 1.3 structure 2026-10-02 14:11:45 +02:00
AxSequenceCollector.sql Review 1.4: SQL Scripts for Dynamics AX in the 1.3 structure 2026-10-02 14:11:45 +02:00
BlockingCollector.sql Review 1.4: SQL Scripts for Dynamics AX in the 1.3 structure 2026-10-02 14:11:45 +02:00
ConfigurationCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
CpuCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
CustomQueryCollector.sql Review 1.3: SQL Scripts for database discovery and the permission check 2026-10-02 13:26:16 +02:00
DatabaseCollector.sql Review 1.3: SQL Scripts for database discovery and the permission check 2026-10-02 13:26:16 +02:00
DatabaseDiscovery.sql Review 1.4: SQL Scripts for Dynamics AX in the 1.3 structure 2026-10-02 14:11:45 +02:00
DeadlockCollector.sql Deadlocks: read system_health files without a temp table 2026-10-02 13:47:31 +02:00
ErrorLogCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
FileIoCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
IndexCollector.sql Review 1.3: SQL Scripts for database discovery and the permission check 2026-10-02 13:26:16 +02:00
InstanceConfigurationCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
InstanceProbe.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
LongOperationCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
PerformanceCounterCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
PermissionCheck.sql Review 1.3: SQL Scripts for database discovery and the permission check 2026-10-02 13:26:16 +02:00
PlanAnalysisCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
PlanCacheCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
PrivilegeCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
QueryStatsCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
QueryStoreCollector.sql Review 1.3: SQL Scripts for database discovery and the permission check 2026-10-02 13:26:16 +02:00
ReplicationCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
ServerCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
SuspectPageCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
TempdbCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
TraceFlagCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
WaitSamplingCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00
WaitStatsCollector.sql SQL Scripts: one reviewable script per rule 2026-10-02 13:20:06 +02:00