Click here to Skip to main content
15,906,558 members
Home / Discussions / Database
   

Database

 
GeneralRe: Select with a select Pin
j1webb2-Nov-05 3:05
j1webb2-Nov-05 3:05 
QuestionWhat is in SQL Server 2005 Developer Edition Pin
Paul Watson31-Oct-05 22:10
sitebuilderPaul Watson31-Oct-05 22:10 
AnswerRe: What is in SQL Server 2005 Developer Edition Pin
Colin Angus Mackay31-Oct-05 22:44
Colin Angus Mackay31-Oct-05 22:44 
AnswerRe: What is in SQL Server 2005 Developer Edition Pin
Mike Dimmick1-Nov-05 1:50
Mike Dimmick1-Nov-05 1:50 
Questioncall store procedure using C++ code Pin
qdo999931-Oct-05 15:12
qdo999931-Oct-05 15:12 
Question1000 ADO problems... Pin
l3st4rd31-Oct-05 7:55
l3st4rd31-Oct-05 7:55 
AnswerRe: 1000 ADO problems... Pin
jonathan151-Nov-05 23:35
jonathan151-Nov-05 23:35 
QuestionSending Http Post Request from Stored Procedure Pin
vineet1378031-Oct-05 7:24
vineet1378031-Oct-05 7:24 
Hi,
i am new to SQL-Server and Web Technology. i have just joined a company and its my first task to do. So, Please Help me immediately.

I have to send a Http Post Request to a server with 4 parameters from a Stored Procedure. I got a Stored procedure on google which use Http post method from Stored Procedure. but i dont know how to send Parameters alongwith it on server and how to get back the status message(e.g. error message if failed).

the stored procedure is:

****************************************************************************

CREATE procedure HTTP_POST( @sUrl varchar(200), @response varchar(8000)
out)
As


Declare
@obj int
,@hr int
,@status int
,@msg varchar(255)


exec @hr = sp_OACreate 'MSXML2.ServerXMLHttp.3.0', @obj OUT
if @hr <> 0 begin Raiserror('sp_OACreate MSXML2.ServerXMLHttp.3.0
failed', 16,1) return end


exec @hr = sp_OAMethod @obj, 'open', NULL, 'POST', @sUrl, false
if @hr <>0 begin set @msg = 'sp_OAMethod Open failed' goto eh end


exec @hr = sp_OAMethod @obj, 'setRequestHeader', NULL,
'Content-Type', 'application/x-www-form-urlencoded'
if @hr <>0 begin set @msg = 'sp_OAMethod setRequestHeader failed'
goto eh end


exec @hr = sp_OAMethod @obj, 'send', NULL, 'Var1=Test1&Var2=Test2'
if @hr <>0 begin set @msg = 'sp_OAMethod Send failed' goto eh end


exec @hr = sp_OAGetProperty @obj, 'status', @status OUT
if @hr <>0 begin set @msg = 'sp_OAMethod read status failed' goto
eh
end


if @status <> 200 begin set @msg = 'sp_OAMethod http status ' +
str(@status) goto eh end


exec @hr = sp_OAGetProperty @obj, 'responseText', @response OUT
if @hr <>0 begin set @msg = 'sp_OAMethod read response failed' goto
eh end


exec @hr = sp_OADestroy @obj
return


eh:
exec @hr = sp_OADestroy @obj
Raiserror(@msg, 16, 1)
return
GO

****************************************************************************

the parameters which i have to send are:

variable name ----- Parameter value
------------------------------------------------------------
name -> any character String
msisdn -> any numeric string (Like Mobile No.)
toAddress -> any numeric string (Like Mobile No.)
message -> any character string (Like SMS Message)
-------------------------------------------------------------

Actually i have to send these information on a server which will send SMS to any mobile. so, plz can any one help me.....

Thanx in Advance....
Confused | :confused:

-- modified at 13:25 Monday 31st October, 2005
QuestionHelp! our DBA died Pin
sameerhanda31-Oct-05 5:12
sameerhanda31-Oct-05 5:12 
AnswerRe: Help! our DBA died Pin
Mike Dimmick1-Nov-05 1:59
Mike Dimmick1-Nov-05 1:59 
GeneralRe: Help! our DBA died Pin
sameerhanda2-Nov-05 3:35
sameerhanda2-Nov-05 3:35 
GeneralRe: Help! our DBA died Pin
rwestgraham2-Nov-05 11:34
rwestgraham2-Nov-05 11:34 
GeneralRe: Help! our DBA died Pin
sameerhanda3-Nov-05 4:24
sameerhanda3-Nov-05 4:24 
QuestionXML to SQL Server data transformation Pin
Probal Roy31-Oct-05 2:12
Probal Roy31-Oct-05 2:12 
QuestionSQL - Check if field contains string Pin
Zanathel30-Oct-05 7:07
Zanathel30-Oct-05 7:07 
AnswerRe: SQL - Check if field contains string Pin
toxcct30-Oct-05 8:12
toxcct30-Oct-05 8:12 
GeneralRe: SQL - Check if field contains string Pin
Zanathel30-Oct-05 11:15
Zanathel30-Oct-05 11:15 
GeneralRe: SQL - Check if field contains string Pin
toxcct30-Oct-05 20:58
toxcct30-Oct-05 20:58 
GeneralRe: SQL - Check if field contains string Pin
Leather992-Nov-05 3:30
Leather992-Nov-05 3:30 
QuestionmySql in my application Pin
Sasuko29-Oct-05 14:01
Sasuko29-Oct-05 14:01 
AnswerRe: mySql in my application Pin
Paul Conrad30-Oct-05 18:36
professionalPaul Conrad30-Oct-05 18:36 
GeneralRe: mySql in my application Pin
Sasuko30-Oct-05 21:30
Sasuko30-Oct-05 21:30 
GeneralRe: mySql in my application Pin
Paul Conrad31-Oct-05 4:54
professionalPaul Conrad31-Oct-05 4:54 
QuestionORDER BY @Variable??? Pin
Carl Mercier29-Oct-05 10:43
Carl Mercier29-Oct-05 10:43 
AnswerRe: ORDER BY @Variable??? Pin
twostepted30-Oct-05 17:39
twostepted30-Oct-05 17:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.