error using STREAM.ReadText
- From: "gNM" <red__mosquito@xxxxxxxxx>
- Date: Fri, 22 Sep 2006 10:17:31 +0300
Hi all. I need to import csv file stored on some http address to MS SQL 2000
DB.
I use VBScript:
-------------------------------------------------------------
set oHTTP = CreateObject("Microsoft.XMLHTTP")
set oStream = createobject("adodb.stream")
oStream.type = adTypeText
oStream.mode = adModeReadWrite
oStream.CharSet = "ISO-8859-1"
oHTTP.open "GET", strSource, False
oHTTP.send
oStream.open
oStream.WriteText oHTTP.responseText
oStream.Position = 2
str = oStream.ReadText -2 ' - GETTING ERROR HERE
-------------------------------------------------------------
I get error while try to get text line from Stream object.
Error msg:
TYPE MISTMACH: '[string: '''']'
whats wrong with this???
.
- Prev by Date: Re: Import data from Excel
- Next by Date: dts package best place for lots of logic
- Previous by thread: Re: Import data from Excel
- Next by thread: dts package best place for lots of logic
- Index(es):
Relevant Pages
|