Hi Expert,
I come accross a error DBIF_RSQL_SQL_ERROR when I
upgrade from SQL2000 TO SQL2005 on R346C system.
The detailed error discription is SQL error 1018
occurred when accessing table "NRIV ".
The SAP system can run with some errors when it
starts. The main error is DB ERROR: SQL ERROR 1018
which is coming up when I run some T-CODE such as
DB02, SE38 and so on.
The detailed info as follows:
Database error text........: "Incorrect syntax
near 'REPEATABLEREAD'. If this
is intended as a part of a table hint, A WITH
keyword and parenthesis are now
required. See SQL Server Books Online for proper
syntax."
Internal call code.........: "[RSQL/RDUP/NRIV ]"
Please check the entries in the system log
(Transaction SM21).
Information on where termination occurred
The termination occurred in the ABAP/4
program "SAPLSNR3 " in
"READ_NRIV".
The main program was "RSMMSS01 ".
The termination occurred in line 239
of the source code of program "LSNR3F01 " (when
calling the editor 2390).
The program "SAPLSNR3 " was started as a background
job.
This is part of the log below:
TspLookup: could not find [SELECT "CLIENT" AS c ,"OBJECT" AS c ,"SUBOBJECT" AS c ,"NRRANGENR" AS c ,"TOYEAR" AS c ,"FROMNUMBER" AS c ,"TONUMBER" AS c ,"NRLEVEL" AS c ,"EXTERNIND" AS c FROM "NRIV" (UPDLOCK REPEATABLEREAD) WHERE "CLIENT" = @P000 AND "OBJECT" = @P001 AND "SUBOBJECT"...] - length: 327
ExecuteAndFlush:[CREATE PROCEDURE ##Y8SHSAPSRVUPG017720000000002112047 @P000 varchar(3) = ' ', @P001 varchar(10) = ' ', @P002 varchar(6) = ' ', @P003 varchar(2) = ' ', @P004 varchar(4) = '0000' AS
SELECT "CLIENT" AS c ,"OBJECT" AS c ,"SUBOBJECT" AS c ,"NRRANGENR" AS c ,"TOYEAR" AS c ,"FROMNUMBER" AS c ,"TONUMBER" AS c ,"NRLEVEL" AS c ,"EXTERNIND" AS c FROM "NRIV" (UPDLOCK REPEATABLEREAD) WHERE "CLIENT" = @P000 AND "OBJECT" = @P001 AND "SUBOBJECT" = @P002 AND "NRRANGENR" = @P003 AND "TOYEAR" = @P004
/* SAPMSSY2 */
]
MapHr:DB_E_ERRORSINCOMMAND
ExecuteAndFlush: line 30856. Incorrect syntax near 'REPEATABLEREAD'. If this is intended as a part of a table hint, A WITH keyword and parenthesis are now required. See SQL Server Books Online for proper syntax.
MapNativeMssError(1018) DBSL RETCODE: 99
Error/Message: (1018), Incorrect syntax near 'REPEATABLEREAD'. If this is intended as a part of a table hint, A WITH keyword and parenthesis are now required. See SQL Server Books Online for proper syntax.
ROLLBACK(0)
Please help me out!
Thank you very much!