dbTalk Databases Forums  

Firing an HTTP GET from a DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Firing an HTTP GET from a DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve Hebert
 
Posts: n/a

Default Firing an HTTP GET from a DTS - 06-09-2004 , 11:05 AM






I'm trying to run a URL from a DTS that triggers a remote server operation.
I have the remote URL operational, it's just the DTS piece I need to
complete at this point. I'm not finding any pointers on how to run this on
MSDN or google. Any ideas?

Thank you,
-Steve



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Firing an HTTP GET from a DTS - 06-09-2004 , 02:23 PM






In message <#l7xgujTEHA.1412 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, Steve Hebert
<steve (AT) hebertsoft (DOT) com> writes
Quote:
I'm trying to run a URL from a DTS that triggers a remote server operation.
I have the remote URL operational, it's just the DTS piece I need to
complete at this point. I'm not finding any pointers on how to run this on
MSDN or google. Any ideas?

Thank you,
-Steve


How about an ActiveX Script Task that calls a COM object capable of
making the Http request for you. There's a few around but I normally use
ServerXmlHTTP

A quick example-

Dim xmlHTTP
Dim sURL

sURL = "http://someotherserver/respond.asp?Param1=" &
DTSGlobalVariables("MyVar").Value

Set xmlHTTP = CreateObject ("MSXML2.ServerXMLHTTP.4.0")
xmlHTTP.open "GET",, False
xmlHTTP.send ()
MsgBox xmlHTTP.responseXML.xml



--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
Steve Hebert
 
Posts: n/a

Default Re: Firing an HTTP GET from a DTS - 06-09-2004 , 04:11 PM



I was debating about writing my own - but hoping for a built-in object. It
looks like ServerXMLHttp will do the trick.

Thank you!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.