The following table highlights SQL hints based on MS SQL Server hints optimization.

CategoryHintAvailable ForNotes
QUERYIGNORE_NONCLUSTERED_COLUMNSTORE_INDEXSELECT/INSERT/UPDATE/DELETE/MERGE

This hint lets you disable use of a nonclustered xVelocity memory optimized columnstore index.

JOINLOOPSELECT/UPDATE/DELETE

Not applicable for RIGHT OUTER or FULL joins.

JOINHASHSELECT/UPDATE/DELETE--
JOINMERGESELECT/UPDATE/DELETE--
JOINREMOTESELECT/UPDATE/DELETE

Only for INNER JOINs. Not applicable with COLLATE.

QUERYRECOMPILESELECT/UPDATE/DELETE--
QUERYFORCE ORDERSELECT/UPDATE/DELETE--
QUERYROBUST PLANSELECT/UPDATE/DELETE--
QUERYKEEP PLANSELECT/UPDATE/DELETE--
QUERYKEEPFIXED PLANSELECT/UPDATE/DELETE--
QUERYEXPAND VIEWSDML StatementsOnly for statement containing views.
QUERYHASH GROUPSELECT

Only when GROUP BY, COMPUTE and DISTINCT clauses are used.

QUERYORDER GROUPSELECT/UPGRADE/DELETE

Only when GROUP BY, COMPUTE and DISTINCT clauses are used.

QUERYMERGE UNIONSELECTOnly for statements chained using UNION.
QUERYHASH UNIONSELECTOnly for statements chained using UNION.
QUERYCONCAT UNIONSELECTOnly for statements chained using UNION.
QUERYLOOP JOINSELECT/UPGRADE/DELETE--
QUERYMERGE JOINSELECT/UPGRADE/DELETE--
QUERYHASH JOINSELECT/UPGRADE/DELETE--
TableFORCESCANSELECT/UPGRADE/COMPLETEForces the optimizer to use an index scan operation as the access path to the referenced table or view.
TableFORCESEEKSELET/UPDATE/COMPLETE

Forces the optimizer to use an index seek operation as the access path to the referenced table or view.

TableINDEX()DML StatementsOnly for tables and views with indexes.
TableKEEPIDENTITYINSERT

Only for INSERT statements using OPENROWSET clause with BULK option.

TableKEEPDEFAULTSINSERT

Only for INSERT statements using OPENROWSET clause with BULK option.

TableHOLDLOCKDML StatementsNot applicable for SELECT statements using FOR BROWSE clause.
TableIGNORE_CONSTRAINTSINSERT

Only for INSERT statements using OPENROWSET clause with BULK option.

TableIGNORE_TRIGGERSINSERT

Only for INSERT statements using OPENROWSET clause with BULK option.

TableNOLOCKSELECT/UPDATE/COMPLETE

Not applicable for the target table in UPDATE/DELETE statements. 

TableNOWAITDML Statements--
TablePAGELOCKDML Statements--
TableREADCOMMITTEDDML Statements--
TableREADCOMMITTEDLOCKSELECT/UPDATE/COMPLETE--
TableREADPASTSELECT/UPDATE/COMPLETE

Not applicable for the target table in UPDATE/DELETE statements.

TableREADUNCOMMITTEDSELECT/UPDATE/COMPLETE

Not applicable for the target table in UPDATE/DELETE statements. 

TableREPEATABLEREADDML Statements--
TableROWLOCKDML Statements--
TableSERIALIZABLEDML Statements

Not applicable for SELECT statements using FOR BROWSE clause.

TableSPATIAL_WINDOW_MAX_CELLSDML Statements

Specifies the maximum number (1 - 8192) of cells to use when tessellating a geometry or geography object.

TableTABLOCKDML Statements--
TableTABLOCKXDML Statements--
TableUPDLOCKDML Statements--
TableXLOCKDML Statements--



IDERA |  Products | Purchase | Support |  Community |  Resources |  About Us  | Legal