- Use column names instead of * in SELECT query
- Reduce the use of temp tables created in the SP, delete the tables once their use is over.
- Create indexes on frequently queried columns,
- use JOIN statements instead of sub-queries or correlated sub-queries.
How can you performance tune a Stored Procedure?
- Use column names instead of * in SELECT query
- Reduce the use of temp tables created in the SP, delete the tables once their use is over.
- Create indexes on frequently queried columns,
- use JOIN statements instead of sub-queries or correlated sub-queries.