Application Development and Automation 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: 
Read only

can we have a hint for Microsoft SQL Server

Former Member
0 Likes
1,621

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,083

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

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,083

Hi,

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

thanks

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,084

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

Read only

0 Likes
1,083

Thanx a ton Raymond.

That was fantastic