KcV (11/23/2015)
(After writing SP i do Optimizing using Database Tuning Adviser ) is it OK ?
I am not sure you should completely rely on DTA for performance optimisation that too at SP level . It is better to have design and development standards and practises, and tune the query when it is required.
But using DTA for learning is fine though.