sql_check_foreign_keys
Check for foreign key violations and orphaned records in SQL Server tables. Identify rows referencing non-existent parent rows to diagnose referential integrity issues.
Instructions
Find foreign key violations in a table — records that reference non-existent parent rows (orphaned data). Very useful for diagnosing referential integrity issues.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sql_check_foreign_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Specific table to check. If omitted, checks ALL tables. |