Solved

HTTP POST through SQL

Posted on 2004-09-03
8
250 Views
Last Modified: 2012-06-27
One of the developers on my team needs to make an HTTP call in a stored procedure in SQL server 2000. This procedure runs at midnight every night and we need to send an HTTP POST at certain points throughout it. However, the developer is unsure of how to do this exactly.

Does anyone know how I can make a HTTP call in an SQL query?
0
Comment
Question by:dur_hannal
8 Comments
 
LVL 8

Expert Comment

by:bukko
ID: 11972161
Write a COM dll to do this in VB, then call the dll using

xp_OACreate
xp_OAMethod and
xp_OADestroy

bukko
0
 

Author Comment

by:dur_hannal
ID: 11972611
My developer is trying to avoid doing this using a VB component or an NT Serivce, I am told
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 11974038
Then the developer will have to code directly against the MSXML dll using the extended stored procedures mentioned previously by bukko
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:dur_hannal
ID: 11975064
I will mention this to him and see what he thinks. Thanks for now.
0
 
LVL 12

Accepted Solution

by:
kselvia earned 80 total points
ID: 11980141
Here is a sample of a GET from T-SQL. Might work for POST too.

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=35900&whichpage=2
0
 

Author Comment

by:dur_hannal
ID: 11988421
Ahhh, this looks more like it. Let me see what my developer thinks of this link. Thank you kselvia.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Pivot with row total 5 29
Dynamic SQL select query 4 38
changing page verifacation 1 30
SQL View / Qtry 3 12
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question