Skip to content

Instantly share code, notes, and snippets.

@jrgcubano
Created March 3, 2015 15:56
Show Gist options
  • Save jrgcubano/7660be3ad0f52aa443a7 to your computer and use it in GitHub Desktop.
Save jrgcubano/7660be3ad0f52aa443a7 to your computer and use it in GitHub Desktop.
SQL TO JSON
// SQL TO JSON
SELECT
'{"<Code>k__BackingField":"' + [Code] +
'","<Name>k__BackingField":"' + [Name] +
'","<Description>k__BackingField":"' + [Description] +
'","<Parent>k__BackingField":"' + ISNULL([Parent], '') +
'"}, '
FROM [ISOValues].[dbo].[FuntionalSections]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment