当前位置:网站首页>SQL Server 调用 WebService
SQL Server 调用 WebService
2022-08-04 22:04:00 【51CTO】
declare @xmlhttp int
declare @err int
declare @Get VARCHAR(3000)
EXEC @err = sp_OACreate "MSXML2.XMLHTTP", @xmlhttp OUT --创建XMLHTTP对象
EXEC @err = sp_OAMethod @xmlhttp,'Open',NULL,'Get',' http://www.sms10000.com.cn/szdx_sdk/SMS?cmd=getmo&uid=075582980049&psw=12345','False' --调用OPEN方法
EXEC @err = sp_OAMethod @xmlhttp,'Send',NULL,NULL; --调用SEND方法
EXEC @err = sp_OAGetProperty @xmlhttp, 'responseText',@Get output
print @Get
SELECT @Get as result
边栏推荐
猜你喜欢
随机推荐
Altium Designer 19.1.18 - 保护锁定的对象
ES 数据聚合、数据同步、集群
七夕特制:《牛郎会织女》
8 年产品经验,我总结了这些持续高效研发实践经验 · 协同篇
QT 子窗口—>主窗口 信号和槽的交互
2022年江苏省大学生电子设计竞赛(TI杯)B题 飞机 省级一等奖记录 “一个摆烂人的独白”
Unknown point cloud structure file conversion requirements
rk3399-9.0 first-level and second-level dormancy
Analysis and treatment of Ramnit infectious virus
移动web开发03
信创是什么意思?涉及哪些行业?为什么要发展信创?
1319_STM32F103串口BootLoader移植
立方度量(Cubic Metric)
炽热如初 向新而生|ISC2022 HackingClub白帽峰会圆满举办!
七夕,当爱神丘比特遇上牛郎和织女
关于std::vector<std::string>的操作
How to solve the problem that the alarm information cannot be transmitted after EasyGBS is connected to the latest version of Hikvision camera?
硬件开发定制全流程解析
【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
What does Xinchuang mean?Which industries are involved?Why develop Xinchuang?








