Setting Query Priority

Setting query priority options assigns query processing priorities by user.

Queries waiting in queue for processing are queued to run in order of the priority of the user who submitted the query, followed by the order in which the query was submitted. No queries are run from a lower priority queue until higher priority queries have all been executed.

The following options assign queries a processing priority by user.

To check the priority of a query, check the IQGovernPriority attribute returned by the sp_iqcontext stored procedure.

Related concepts
Setting Query Time Limits
Setting Query Optimization Options
Setting User-Supplied Condition Hints
Monitoring Workloads