analyze_table_stats
Retrieve row counts, table sizes, and last update statistics from SQL Server databases using a connection string or named connection. Supports schema and table filters for targeted analysis.
Instructions
Get table row counts, size information, and last update statistics
Input Schema
Name | Required | Description | Default |
---|---|---|---|
connectionName | No | Named connection to use (e.g., 'production', 'staging') | |
connectionString | No | SQL Server connection string (uses default if not provided) | |
schema | No | Schema name (default: dbo) | |
tableName | No | Filter by specific table name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"connectionName": {
"description": "Named connection to use (e.g., 'production', 'staging')",
"type": "string"
},
"connectionString": {
"description": "SQL Server connection string (uses default if not provided)",
"type": "string"
},
"schema": {
"description": "Schema name (default: dbo)",
"type": "string"
},
"tableName": {
"description": "Filter by specific table name",
"type": "string"
}
},
"type": "object"
}