E-MSS FOR UPDATE clause allowed only for DECLARE CURSOR with Sql Server 2012
(Doc ID 1982973.1)
Last updated on DECEMBER 11, 2019
Applies to:PeopleSoft Enterprise PT PeopleTools - Version 8.54 to 8.54 [Release 8.4]
Information in this document applies to any platform.
SQL SERVER 2012
Server Native Client 11.0
The Application Designer crashes when attempting to copy a project (PPLTLS84CUR) from file into the database for comparison purposes.
File: E:\pt85407b-retail\peopletools\src\psmgr\mgrvers.cppSQL error. Stmt #: 645 Error Position: 0 Return: 8601 - [Microsoft][SQL Server Native Client 11.0][SQL Server]Line 1: FOR UPDATE clause allowed only for DECLARE CURSOR.
[Microsoft][SQL Server Native Client 11.0][SQL Server]The batch could not be analyzed because of compile errors. (SQLSTATE 37000) 11501
Failed SQL stmt: SELECT VERSION, OBJECTTYPENAME FROM PSLOCK WHERE OBJECTTYPENAME IN ('PJM') FOR UPDATE OF VERSION
When trying to execute the sp_cursorprepare stored procedure to compile a cursor statement or batch into an execution plan in Microsoft SQL Server 2012.
When the stored procedure does not return metadata for the cursor statement or batch, the user executes the sp_describe_first_result_set stored procedure to receive the metadata for the expected result set of the Transact-SQL batch.
The sp_describe_first_result_set stored procedure is called together with cursor-specific syntax. For example, a user can use a cursor statement in the stored procedure together with the FOR UPDATE clause.
In this scenario, the following error message is experienced:
FOR UPDATE clause allowed only for DECLARE CURSOR.
The issue can be reproduced when copying any project from file into the database.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document