Below having some command used to get/analysis the Sql Query for optimization.
Add Below list of command at top pf the Query with ON and at the end again reset with OFF
Ex: Set NoCount ON
--Query
Set NoCount OFF
----Set Of Commands--------
Set NoExec OFF
Set ParseOnly OFF
Set Concat_Null_Yields_NULL OFF
Set Arithabort OFF
--Set Showplan_Text OFF
Set Statistics Time OFF
Set Statistics IO OFF
Set NOCount OFF
-----Mainly Used below three command only-----
SET NOCOUNT ON
SET STATISTICS TIME ON
set statistics io on
No comments:
Post a Comment