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.
UpdateData executes a single UPDATE statement against the connected SQL Server or Azure SQL Database. It is marked ReadOnly=false, Destructive=true in MCP metadata — agents should confirm intent with the user before calling it, particularly to verify the scope of rows that will be changed.
Parameter
A complete
UPDATE T-SQL statement. A WHERE clause is strongly recommended to avoid full-table updates. Multi-batch scripts separated by GO are not supported. A trailing semicolon is allowed; an internal semicolon between two statements is rejected.Return value
UpdateData returns a DbOperationResult with rowsAffected populated:
rowsAffected reflects the number of rows modified by the UPDATE statement, as returned by ExecuteNonQueryAsync. A result of 0 means no rows matched the WHERE clause — the statement succeeded but nothing changed.
On failure:
AI Insights integration
On success,UpdateData calls QueueInsightDdlProcessing(), which enqueues the same background DDL audit drain and schema-fingerprint reconciliation used by all write tools. This is automatic when USE_INSIGHTS_LAYER is enabled (the default) and is a no-op when it is disabled. Because UPDATE does not change table schema, insight rows are rarely archived by a data-only update; the background job simply confirms no DDL drift has occurred since the last reconciliation.