get_stored_procedure_definition
Retrieve the complete SQL source code definition for a stored procedure in Microsoft SQL Server databases to view, analyze, or modify database logic.
Instructions
Get the complete SQL query/definition of a stored procedure - this is the actual source code
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionString | No | SQL Server connection string (uses default if not provided) | |
| connectionName | No | Named connection to use (e.g., 'production', 'staging') | |
| procedureName | Yes | Name of the stored procedure to get definition for | |
| schema | No | Schema name (default: dbo) | |
| formatOutput | No | Format the SQL output for better readability (default: true) |