当前位置:网站首页>SQL Server calls WebService
SQL Server calls WebService
2022-08-04 22:20:00 【51CTO】
declare @xmlhttp int
declare @err int
declare @Get VARCHAR(3000)
EXEC @err = sp_OACreate "MSXML2.XMLHTTP", @xmlhttp OUT--Create XMLHTTP object
EXEC @err = sp_OAMethod @xmlhttp,'Open',NULL,'Get',' http://www.sms10000.com.cn/szdx_sdk/SMS?cmd=getmo&uid=075582980049&psw=12345','False' --call OPEN method
EXEC @err = sp_OAMethod @xmlhttp,'Send',NULL,NULL; --call SENDMethod
EXEC @err = sp_OAGetProperty @xmlhttp, 'responseText',@Get output
print @Get
SELECT @Get as result
边栏推荐
猜你喜欢
随机推荐
老叶的三束玫瑰
2022精选最新金融银行面试真题——附带答案
单片机原理[一] 学好单片机必会的五张图
OC-拷贝
LeetCode 199: 二叉树的右视图
rk3399-0.0 svc command
剑指Offer | 数值的整数次方
Unknown point cloud structure file conversion requirements
炽热如初 向新而生|ISC2022 HackingClub白帽峰会圆满举办!
【组成原理 六 存储器类型】
Excel商业智能-Power BI电商数据分析实战
重新配置chrome中ffmpeg插件
[QT] Implementation of callback function
开源一夏 | 云服务器ECS安装Mysql、JDK、RocketMQ
中大型商业银行堡垒机升级改造方案!必看!
后排乘客不系安全带?事故瞬间被甩出
ANT1.7 download and configuration method
Analysis and treatment of Ramnit infectious virus
关于std::vector<std::string>的操作
使用cpolar优化树莓派上的网页(1)