Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:23 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.