Skip to content

Commit 7088bdb

Browse files
Add log-to-table functionality for sp_QuickieStore
Adds 5 new parameters (@log_to_table, @log_database_name, @log_schema_name, @log_table_name_prefix, @log_retention_days) following the sp_HealthParser logging pattern. When @log_to_table = 1, results are inserted into permanent tables instead of returned to the client, enabling scheduled/automated Query Store analysis. - 9 logging tables: RuntimeStats, CompilationStats, ResourceStats, WaitStatsByQuery, WaitStatsTotal, PlanFeedback, QueryHints, QueryVariants, QueryStoreOptions - Forces @format_output = 0 when logging (raw numeric storage) - Mutually exclusive with @find_high_impact - Includes retention cleanup, schema auto-creation, and IF NOT EXISTS table creation - Tested across SQL2016-SQL2025 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 618d798 commit 7088bdb

1 file changed

Lines changed: 1076 additions & 37 deletions

File tree

0 commit comments

Comments
 (0)