on 04-27-2009 3:10 PM
We are migrating an SAP landscape from HP-UX / Oracle to Windows / SQL Server. We have numerous custom programs with OPEN SQL Hint statements of the form:
select aqmnum akunum aobjnr azztaxtype a~zzservcenter
azzassmpriok azzaudittype a~zzdr840dt
into corresponding fields of table lt_qmel
from qmel as a
inner join ihpa as b
on aobjnr = bobjnr
where a~qmart IN ('Z7','Z8','Z9','ZU','ZD')
and b~parnr = sy-uname
*%_hints oracle*
*'INDEX("&TABLE&" "IHPAP" "IHPAP")'.*
Question: What is the best way to make these SQL statements compatible with SQL Server?
Thanks
>
> We are migrating an SAP landscape from HP-UX / Oracle to Windows / SQL Server. We have numerous custom programs with OPEN SQL Hint statements of the form:
> Question: What is the best way to make these SQL statements compatible with SQL Server?
Hi Paul,
as hints are highly database specific it may well be that you won't need them for your new DBMS anymore.
In any case you've to review them one-by-one to check the execution plan of the queries without a hint.
A general "migration of hints" is neither possible nor sensible.
regards,
Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.