I have to write Json and I dont know how could i store that query in SQL Server
my code is this:
DECLARE @JsonData AS NVARCHAR(MAX) = (SELECT FID, Ftype, Fcount, Datetype, Fregion
FROM FoodSara_tbl
FOR JSON AUTO)
and if I write SELECT ISJSON(@JsonData )
it returns 1
how can I store Json query in SQL?
PS: I dont't want write it in SP
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…