0
kicks
Stored Procedure Optimization Tips – Best Practices
Key Points discussed in the articles are :
1. Include SET NOCOUNT ON statement
2. Use schema name with object name
3. Do not use the prefix “sp_” in the stored procedure name
4. Use IF EXISTS (SELECT 1) instead of (SELECT *)
5. Try to avoid using SQL Server cursors whenever possible
6. Keep the Transaction as short as possible
7. Use TRY-Catch for error handling