Improve stored procedure performance in SQL Server
- Use SET NOCOUNT ON. ...
- Use fully qualified procedure name. ...
- sp_executesql instead of Execute for dynamic queries. ...
- Using IF EXISTS AND SELECT. ...
- Avoid naming user stored procedure as sp_procedurename. ...
- Use set based queries wherever possible. ...
- Keep transaction short and crisp.
No comments:
Post a Comment