MSSQL computed column


#1

In my mssql database in one table I have colum definied like this:
[WasScanned] AS ([dbo].CheckIfSpeditionOrderWasScanned),

This colum typ is “computed”.
when I’m traying save new record i have an error:
“DBERROR:[Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Column ‘inserted.WasScanned’ cannot be referenced in the OUTPUT clause because the column definition contains a subquery or references a function that performs user or system data access. A function is assumed by default to perform data access if it is not schemabound. Consider removing the subquery or function from the column definition or removing the column from the OUTPUT clause.”

is any way to handle this in Cake

regards