记一次sql server 2005访问http接口,并解析json的过程 JSON解析官方网站:https://www.red-gate.com/simple-talk/sql/t-sql-programming/consuming-json-strings-in-sql-server/ Sql脚本: --开启Sql Server 通讯配置-- sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure '
T-SQL解析json字符串函数及其使用示例 参考博文:http://www.cnblogs.com/huangtailang/p/4277809.html 1.解析json字符串函数,返回表变量 ALTER FUNCTION [dbo].[parseJSON](@JSON NVARCHAR(MAX)) RETURNS @hierarchy TABLE ( element_id , ) NOT NULL, /* internal surrogate primary key gives the o