How To Call Any Api From Sql (sql Sript)

How To Call Any Api From Sql (sql Sript)




Declare @Object as Int;
Declare @ResponseText as Varchar(8000);
--Code Snippet
Exec sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
Exec sp_OAMethod @Object, 'open', NULL, 'get',
'http://www.yoururl.com', --Your Web Service Url (invoked)
'false'
Exec sp_OAMethod @Object, 'send'
Exec sp_OAMethod @Object, 'resp

No comments:

Post a comment

Thank You For Your Great Contribution

Featured Post

How to convert xml to json using angular / javascript

 How to convert xml to json using angular / javascript import  {  Injectable  }  from   '@angular/core' ; @ Injectable ({    provide...

Popular Posts