Parameters | Details |
---|---|
expression | Typically the name of a variable or a column that contains JSON text. |
path | A JSON path expression that specifies the property to update. path has the following syntax: [append] [ lax | strict ] $.<json path> |
jsonExpression | Is a Unicode character expression containing the JSON text. |
The OPENJSON function is only available under compatibility level 130. If your database compatibility level is lower than 130, SQL Server will not be able to find and execute OPENJSON function. Currently all Azure SQL databases are set to 120 by default. You can change the compatibility level of a database using the following command:
ALTER DATABASE <Database-Name-Here> SET COMPATIBILITY_LEVEL = 130