Update sql-sp-generation.instructions.md (#149)

Updating per #103
This commit is contained in:
Troy Witthoeft (glsauto) 2025-08-03 20:33:47 -04:00 committed by GitHub
parent 57e32ef029
commit 617acae5e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,11 +36,11 @@ applyTo: '**/*.sql'
- avoid using functions on indexed columns in WHERE clauses - avoid using functions on indexed columns in WHERE clauses
## Stored Procedure Naming Conventions ## Stored Procedure Naming Conventions
- prefix stored procedure names with 'sp_' - prefix stored procedure names with 'usp_'
- use PascalCase for stored procedure names - use PascalCase for stored procedure names
- use descriptive names that indicate purpose (e.g., sp_GetCustomerOrders) - use descriptive names that indicate purpose (e.g., usp_GetCustomerOrders)
- include plural noun when returning multiple records (e.g., sp_GetProducts) - include plural noun when returning multiple records (e.g., usp_GetProducts)
- include singular noun when returning single record (e.g., sp_GetProduct) - include singular noun when returning single record (e.g., usp_GetProduct)
## Parameter Handling ## Parameter Handling
- prefix parameters with '@' - prefix parameters with '@'