dbTalk Databases Forums  

Importing a remote text file into a SQL table via a scheduled DTS

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


Discuss Importing a remote text file into a SQL table via a scheduled DTS in the microsoft.public.sqlserver.dts forum.



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

Default Importing a remote text file into a SQL table via a scheduled DTS - 05-23-2006 , 11:14 PM






I've been trying to figure out how to do the following task for about 1/2 a
day now. I have a text file that is downloaded from our inventory mainframe
system to our web server. Anyone can browse the file at the moment as the
root of our hosted web server has public access (I'll change its location
for security when i have it working)

http://209.200.116.72/products_brett.txt

I want to schedule a DTS package to insert the contents into my SQL database
table. I walk through the import wizard to start setting up the process and
I select "text file" as the datsource. Then for filename i select
\\209.200.116.72\products_brett.txt

Regardless of what UNC path i put in, the connection fails. I get the
following error
"Could not open file for reading. Close any other application that may be
locking the file"
I have tried the following paths
\\209.200.116.72
//209.200.116.72/products_brett.txt

Am I going about this the wrong way? Should I be using some other
datasource?

I posted this on another forum and i was advised that it could be a sharing
problem on the web server. I find this weird as my root folder on my web
server has read access for everyone. As i mentioned, you can view the
contents of the file through any browser. Im confident the insert will be ok
its just this initial connection to the remote file.

Any help appreciated.



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.