list_constraints
Retrieve and filter all constraints (check, unique, foreign key, etc.) from tables in a Microsoft SQL Server database using a connection string or named connection.
Instructions
List all constraints (check, unique, foreign key, etc.) across tables in the database
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) | |
constraintType | No | Filter by constraint type (default: ALL) | |
schema | No | Schema name (default: dbo) |