Guest User

Untitled

a guest
Oct 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. declare @country nvarchar(max) = '{
  2. "id" : 101,
  3. "name": "United States",
  4. "continent": "North America"
  5. }';
  6. INSERT INTO Countries
  7. SELECT * FROM OPENJSON(@country)
  8. WITH (id int,
  9. name nvarchar(100),
  10. continent nvarchar(100))
Add Comment
Please, Sign In to add comment