Additional SQL Server features and topics not covered by specific categories
Hi,
>SELECT Jobtitle FROM OPENJSON(@json ) WITH (Jobtitle VARCHAR(MAX) '$.Jobtitle')
The '$.Jobtitle' is the problem, the Jobtitle key may not exist, or there may be an sequence problem. It is difficult to judge without looking at your json file.
It is recommended that you check the following documents to learn more about OPENJSON.
https://learn.microsoft.com/en-us/sql/t-sql/functions/openjson-transact-sql?view=sql-server-ver15
https://learn.microsoft.com/en-us/sql/relational-databases/json/json-data-sql-server?view=sql-server-ver15#convert-json-collections-to-a-rowset