dbTalk Databases Forums  

HTML text file as source

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


Discuss HTML text file as source in the microsoft.public.sqlserver.dts forum.



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

Default HTML text file as source - 06-24-2005 , 09:57 AM






I have an URL to a file that is comma separated on the web. I would like to
use DTS to put the contents into a table. When I create an HTML file source
and give the URL as the location I get the following error:

Error Source : Microsoft JET Database Engine
Error Description : Cannot update. Database or object is read-only.

It's obviously read-only because its a webpage on the internet. Maybe I'm
missing the point of this type of source connection? Can someone suggest how
to simply get this comma separated webpage into a table in SQL Server,
without using scripts or Excel web queries, etc.?

Reply With Quote
  #2  
Old   
Rick Gittins
 
Posts: n/a

Default Re: HTML text file as source - 06-24-2005 , 12:44 PM






If the file is delimited just use the file name as the source in a regular
text file and not use it as an HTML file.


"Kyler" <kyler (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have an URL to a file that is comma separated on the web. I would like
to
use DTS to put the contents into a table. When I create an HTML file
source
and give the URL as the location I get the following error:

Error Source : Microsoft JET Database Engine
Error Description : Cannot update. Database or object is read-only.

It's obviously read-only because its a webpage on the internet. Maybe I'm
missing the point of this type of source connection? Can someone suggest
how
to simply get this comma separated webpage into a table in SQL Server,
without using scripts or Excel web queries, etc.?



Reply With Quote
  #3  
Old   
Kyler
 
Posts: n/a

Default Re: HTML text file as source - 06-27-2005 , 11:14 AM



Hi Rick,
Thanks for your reply. I have tried using a 'Text File (Source)' instead of
a 'HTML File (Source)', however it doesn't seem to work with a URL.

Reply With Quote
  #4  
Old   
Rick Gittins
 
Posts: n/a

Default Re: HTML text file as source - 06-27-2005 , 11:25 AM



Try to create an ActiveX script that will copy the file locally before you
try an import. Once it is imported then create another ActiveX script to
delete the local copy of the file or move it to another folder to keep an
archive copy of the file.

Rick

"Kyler" <kyler (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi Rick,
Thanks for your reply. I have tried using a 'Text File (Source)' instead
of
a 'HTML File (Source)', however it doesn't seem to work with a URL.



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.