on 08-16-2016 8:29 AM
All,
We have recently migrated from Oracle to Sybase and I am trying to replace Oracle HINTS in our custom code with Sybase Hints with below syntax to force index.
%_HINTS SYBASE 'TABLE BKPF ABINDEX(BKPF~4)'. However it is not allowing keyword SYBASE next to %_HINTS but allows lot of other DB's.
Can somebody guide me how to use SYBASE Hints for forcing a particular index to be used. I have referred to Below OSS notes for syntax which seems doesnt work.
130480 - Database hints in Open SQL for Oracle
129385 - Database hints in Open SQL
1702338 - SYB: Database hints in Open SQL for SAP ASE
Appreciate your help in this regard
Regards
Kasi
If you're wanting the syntax of Sybase SQL for hints, I suggest your search/post in Sybase forums. When I do hints for Oracle, I read the Oracle reference, not the ABAP reference...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I should have provided more details.
There is no syntax error but the moment I type SYBASE after %_HINTS, it turns into RED but not for ORACLE or DB2 or other Data Base references.
We are on Basis 731 and Kernel Release 721
DB Client: Sybase ASE 16.0.02.03
DBSL Version: 721.02
Thanks in advance for your support.
Regards
Kasi
Hi,
What does the syntax error say?
The possible additions after %_HINTS are:
Addition | Database System |
ADABAS | SAP MaxDB |
AS400 | IBM System i (AS/400) |
DB2 | IBM DB2 |
DB6 | IBM DB2 UDB |
HDB | SAP HANA database |
MSSQLNT | Microsoft SQL Server |
ORACLE | Oracle DB |
SYBASE | Sybase ASE |
-> There shouldn't be any problem. The following is syntactically correct in our systems:
SELECT *
FROM scarr
%_HINTS SYBASE '...'
INTO TABLE @DATA(itab).
Horst
PS: I don't see your INTO-clause (?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ooops,
now I'm back in a 700 System, and indeed I get a syntax error for:
DATA itab TYPE TABLE OF scarr.
SELECT *
FROM scarr
INTO TABLE itab
%_HINTS SYBASE '...'.
But not for
SELECT *
FROM scarr
INTO TABLE itab
%_HINTS ORACLE '...'.
-> The support for SYBASE is available since release 7.02. No syntax error there.
Note 1702338 says:
%_HINTS SYBASE syntax requires kernel 720 patch level 77 and will cause syntax errors with older kernel releases.
Question: What is your basis release and what is your kernel release?
User | Count |
---|---|
67 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.