Question
moj.gov.sa
GB
Last activity: 20 Feb 2022 16:44 EST
MSSQL Sequence is not working in connect sql
MS SQL Sequence is not working in connect sql
When we give the sequence name directly it is working fine in Connect SQL
SELECT NEXT VALUE FOR [Seq_Person] AS ".pyID"; working
but if changing the sequence name dynamically it is failing with syntax error
SELECT NEXT VALUE FOR {.pyNote} AS ".pyID";
[MSG][Error in RDB-Open][STACK][com.pega.pegarules.pub.database.DatabaseException: There was a problem getting a list: code: 102 SQLState: S0001 Message: Incorrect syntax near '@P0'. DatabaseException caused by prior exception: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '@P0'. | SQL Code: 102 | SQL State: S0001 From: