Sql Query Optimization Tips and Tricks
Sql Query Optimization Tips and Tricks
- Try to use columns name inplace of * in the select statements.
- Try to create non-clustered indexes on table columns.
- Try to avoid function calls in the query.
- Try to create primary key on each table.
- Try to avoid COUNT() method in the query for checking esistance of record.
- Try to avoid as much as triggers count on the table.
- While doing sql join operations use only index columns.
- Try to avoid UNION, instead of that use UNION ALL
- Try to use Table Variables instead of tamporary tables in the procedrues, functions or triggers.
- Try to use Stored procedures instead of normal text queries.
- Try to avoid using cursors.
- Try to avoid having clause.
- Try to use where condition for narrowing the query search.
This is one of the good
SQL Server Interview Question
Post a Comment
Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.