Skip to content

Instantly share code, notes, and snippets.

@Hugoberry
Last active April 11, 2017 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hugoberry/0ca6276fe1534c7941d45e4bb229cc41 to your computer and use it in GitHub Desktop.
Save Hugoberry/0ca6276fe1534c7941d45e4bb229cc41 to your computer and use it in GitHub Desktop.
CREATE PROC [dbo].[usp_InsertDemoJSON] @json AS nvarchar(max)
AS
BEGIN
INSERT INTO Demo ([Key],[Value])
SELECT *
FROM OPENJSON(@json)
WITH ([Key] int, [Value] varchar(50))
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment