Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 20th, 2005, 10:26 AM
Registered User
Join Date: May 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Upload a Text file from a Web Client to SQL Server

I have hit a wall!

I am writing a ASP.Net application which should accept text files from Web users and move the data into a SQL Server.

This is what I don't want to do: I know I can stream the data in the text file and do multiple inserts into the table through the application. The volume of data will not make it feasible for such a lot of IO operations.

This is what I want to do:
I upload the file to the Web Server which is outside a fire-wall.
I have a DTS package with a FTP task wich pulls the data from outside the fire-wall to the SQL server (That is where the problem is).
The DTS package does a Text to Table pump task to upload the data.

The Problem:
When the DTS package executes on My Machine or the DBA's or the Network Admins machine, we are able to successfully save the file on the server where the SQL Server is running. This is because of our network authentication.
But If I execute the DTS package from the Web Application, the Application does not have access to the file system of the server and hence the FTP fails. How can I programmatically save the ftp-ied text file from the Web Server through the application?

I presumed that the SQL Agent's access to the file system of the machine is sufficient. But apparently that is not letting the FTP task of the DTS package save the file.

However if the DTS package is a made as job and scheduled. The Auto scheduler seems to have access to the folders to the SQL Agent as it is triggered by the SQL Server itself and not by any user.

Any help is appreciated.

Thanks - Peter

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to upload folder from client to server hemaneelagiri ASP.NET 1.0 and 1.1 Professional 2 July 18th, 2007 06:10 AM
To upload an excel file to to sql server. Abins ASP.NET 1.0 and 1.1 Professional 2 February 22nd, 2006 01:21 AM
Upload a file to sql server database thas123 ASP.NET 1.0 and 1.1 Professional 3 January 9th, 2006 12:29 AM
Upload .xls file to SQL Server bubberz ASP.NET 1.0 and 1.1 Basics 2 August 22nd, 2005 05:20 AM
Script to upload text file to SQL with errors ss2003 Beginning PHP 2 March 10th, 2004 12:00 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.