当前位置:网站首页>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
边栏推荐
猜你喜欢
国内的PMP证书含金量到底如何
As hot as ever, reborn | ISC2022 HackingClub White Hat Summit was successfully held!
ES6高级-Promise的用法
第二讲 软件生命周期
Altium Designer 19.1.18 - Protecting Locked Objects
Why is MySQL query slow?
PowerBI真经连续剧
[Linear Algebra 02] 2 interpretations of AX=b and 5 perspectives of matrix multiplication
ES 数据聚合、数据同步、集群
Lecture 2 Software Life Cycle
随机推荐
【Social Marketing】WhatsApp Business API: Everything You Need to Know
Flutter 实现背景图片毛玻璃效果
openresty lua-resty-template页面静态化
QT[一] 信号与槽
[larave]关于laravel使用form submit()不能获取值问题
[Linear Algebra 03] Elimination method display and 4 solutions of AX=b
docker 搭建mysql 主从复制
【CC3200AI 实验教程 1】疯壳·AI语音人脸识别(会议记录仪/人脸打卡机)-开发环境搭建
强网杯2022——WEB
数字重塑客观世界,全空间GIS发展正当其时
移动web开发03
"Jianzhi offer" brush title classification
力扣24-两两交换链表中的节点——链表
硬件开发定制全流程解析
Webmine Webpage Mining Trojan Analysis and Disposal
Chapter7 : Network-Driven Drug Discovery
Qt面试题整理
信创是什么意思?涉及哪些行业?为什么要发展信创?
炽热如初 向新而生|ISC2022 HackingClub白帽峰会圆满举办!
AI/ML无线通信