Documentation Index
Fetch the complete documentation index at: https://mintlify.com/A-Point-Systems-ltd/ms-sql-mcp/llms.txt
Use this file to discover all available pages before exploring further.
InstallInsightsLayer runs the embedded SQL scripts to create all AI Insights objects in the connected database. The operation is idempotent — re-running is safe and creates only what is missing. It also removes any legacy or non-active AIInsights tables left over from older schema versions.
Parameters
InstallInsightsLayer takes no parameters.
What gets installed
RunningInstallInsightsLayer creates or verifies all of the following database objects:
AIInsightsschema — container schema for all insight layer objectsAIInsights.SchemaInsights— primary insight cache table (one row per database object)AIInsights.InsightHistory— archive table for soft-deleted insight rowsAIInsights.DdlChangeWatermark— single-row table tracking the last-processed DDL audit IDdbo.DDL_AuditLog— event capture table populated by the DDL triggerDDL_Auditdatabase trigger — database-level DDL trigger that records schema changes todbo.DDL_AuditLog
Returns
true when all objects were installed without error; false if installation failed.Present when
success is true. Contains an installed marker and a confirmation message.Present only when
success is false. Contains the error or exception message.InstallInsightsLayer requires USE_INSIGHTS_LAYER to be enabled (the default). If USE_INSIGHTS_LAYER is explicitly set to false, 0, off, or disabled, the tool returns an error without modifying the database.