Connection to server failed : X3 engine error: The SELECT permission was denied on the object 'APLLCK', database 'x3v12', schema 'DEV'. : ini_com:Variable dimension:!(2)

SOLVED

Sage X3 v12p34, SQL Server 2022 Standard edition.

Full error as follows: `Connection to server failed : X3 engine error: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]The SELECT permission was denied on the object 'APLLCK', database 'x3v12', schema 'DEV'. : ini_com:Variable dimension:!(2)`

I believe the SQL Server error equivalent is: Error 76.

For this case, it only affects this specific DEV folder and other folders including X3 folder is not affected.

From my observation, it always the APLLCK table as first victim.

Any way to resolve this?

From Internet googling, it mentioned that SQL Server's user permission was changed.

Which Sage X3 folder's SQL Server user is changed in this case? Is there a way to identify it quickly other than manually check one-by-one with my Sage X3 local copy?