Creating a stored procedure which ingests data after reading a JSON string
问题 I would like to create a stored procedure, in SQL Server, that can accept JSON data and upload it into a specified table into its relevant columns. For instance, take this JSON string: [{"ID":5,"LastName":"Donalds","FirstName":"Dave","Age":23,"City":"London"}] This above string can be produced with the following query: SELECT 5 as 'ID', 'Donalds' as 'LastName', 'Dave' as 'FirstName', 23 as 'Age', 'London' as 'City' FOR JSON PATH I've managed to write a script which can upload into my table