dbTalk Databases Forums  

Download with DTS http - not ftp

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


Discuss Download with DTS http - not ftp in the microsoft.public.sqlserver.dts forum.



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

Default Download with DTS http - not ftp - 10-19-2004 , 03:10 AM






How can I download Files form http: by DTS (not with
ftp) ??

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

Default Re: Download with DTS http - not ftp - 10-19-2004 , 11:07 AM






There is nothing in the box that does http request, so 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


You can write it to a file if you want, I just used a MsgBox for the demo.
ServerXmlHTTP is fully documented in the MSDN library, on or offline.


--
Darren Green
http://www.sqldts.com

"meo" <meyerjo (AT) sick (DOT) de> wrote

Quote:
How can I download Files form http: by DTS (not with
ftp) ??



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.