Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

can we have a hint for Microsoft SQL Server

Former Member
0 Kudos

Hi All,

Could I have a explicit hint declaration for SQL Server.

I know that we could use

%_HINT ORACLE 'INDEX... for oracle and

%_HINT DB2 'INDEX ..for db2

but, what is it for SQL Server.

Appreciate your help.

Thanks,

Mohan

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Look at OSS <a href="https://service.sap.com/sap/support/notes/133381">Note 133381 - Database-Hints in Open SQL for MS SQL Server</a> (Basic note is <a href="https://service.sap.com/sap/support/notes/129385">Note 129385 - Database hints in Open SQL</a>

Extract:

  • Index selection is controlled using the table hint "INDEX(index_val [,...n])" as described in Books-On-Line.

  • In addition the MSSQL db interface provides another way to specify which index to use. This feature allows a hint syntax like this:

o %_HINTS MSSQLNT 'TABLE <tablename> INDEX(<suffix>)'.

Regards

3 REPLIES 3

Former Member
0 Kudos

Hi,

It is the index used for viewing the table lists easily.

thanks

raymond_giuseppi
Active Contributor
0 Kudos

Look at OSS <a href="https://service.sap.com/sap/support/notes/133381">Note 133381 - Database-Hints in Open SQL for MS SQL Server</a> (Basic note is <a href="https://service.sap.com/sap/support/notes/129385">Note 129385 - Database hints in Open SQL</a>

Extract:

  • Index selection is controlled using the table hint "INDEX(index_val [,...n])" as described in Books-On-Line.

  • In addition the MSSQL db interface provides another way to specify which index to use. This feature allows a hint syntax like this:

o %_HINTS MSSQLNT 'TABLE <tablename> INDEX(<suffix>)'.

Regards

0 Kudos

Thanx a ton Raymond.

That was fantastic