SAP Note 133381 - Database-Hints in Open SQL for MS SQL Server

Component : Microsoft SQL Server -

Solution : https://service.sap.com/sap/support/notes/133381 (SAP Service marketplace login required)

Summary :
This SAP Note addresses enhancements to Open SQL hints for efficient SQL Server optimization. A new guideline is introduced, enabling hints as of kernel/DBSL release 4.5B, with further refinements in subsequent releases. Users can implement SQL Server-specific hints by following the integration rules set in the general Note #129385. The ability to specify index usage through hints like INDEX is detailed, alongside conditions where using hints such as &REPARSE and &SUBSTITUTE VALUES can modify query execution plans or recompile procedures as needed. The note emphasizes cautious use of hints, advocating for their application solely when necessary to address specific optimization issues.

Key words :
mssqlnt '&prefer_join 0&'            examplesthe abap program attached, profile parameter               dbs/mss/fae_join            fae_join = 1, arbgb = '00'%_hints mssqlnt 'table &table& abindex, t100 bypassing bufferwhere sprsl = sprsl, %_hints mssqlnt 'table <tablename> abindex, sql-string resulting sql command, theabove-mentioned general note apply, %_hints mssqlnt 'option fae_join', %_hints mssqlnt 'option fae_union', '        mssqlnt 'table &table& fastfirstrow'

Related Notes :

1552952Parameter maxmarkercnt increased to 10000
1423845Syntax error when using ABINDEX with FOR ALL ENTRIES
821722Performance of the join on MSEG and MKPF
811852Substitute_Literals to improve access to LTAP
687864Performance problem following upgrade to 6.20 basis.
652634FOR ALL ENTRIES performance with Microsoft SQL Server
630451MSSQL hint causes runtime error.
538078OPTION hints for MSSQL don't take effect in FORALLENTRIES
338468REPARSE-hint does not work with FOR ALL ENTRIES
159171Recompilation of Stored Procedures
129385Database hints in Open SQL
28667Microsoft SQL Server Specific Profile Parameters