How to add Hints to SQL Server queries


Technique

Product: Reporting Server
Release: 8206
Primary OS: Windows
Solution Date:

Problem

How to add Hints to SQL Server queries.

Solution

The SQL Server adapter allows you to add hints using the following command:

SQL SQLMSS SET HINT OPTION (hint_text)

The hint_text is the text of the hint or hints combination. The end user is responsible for the syntax. Omitting OPTION (hint_text) resets the hint to none.

The hint_text places the hints at the end of the generated query for Microsoft SQL Server.

This setting can be specified in any .fex or profile.