Hello All,
Before I starting writing the code, I would like to figure out what the best approach to this problem would be. I want to create a process that imports a text file (Pipe | delimited), then after looping through the entire file, puts each field into a SQL Server database. The text file is exported from a different system, then I download it via FTP to process the data for the proposed system. Currently, I used DTS to process the data, but the user wants more control outside of DTS.
Initially, I thought of creating a data table, parsing out the individual fields, then writing the data table to the database. The problems I see are :
- the file is 80K has over 200,000 records, so looping seems resource intensive for an ASP.nET page
- file must reside on a virtual directory
One other thought was to create a webservice that would consume the file and automatically import it into the database, is this reasonable for a file that size, how would I go about doing this?
Any and all help would be greatly appreciated! Thanks ahead of time! 1 1234
Take a look at the new SqlBulkCopy class in ADO.NET 2.0
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Shawn Ferguson" wrote:
Hello All,
Before I starting writing the code, I would like to figure out what the best approach to this problem would be. I want to create a process that imports a text file (Pipe | delimited), then after looping through the entire file, puts each field into a SQL Server database. The text file is exported from a different system, then I download it via FTP to process the data for the proposed system. Currently, I used DTS to process the data, but the user wants more control outside of DTS.
Initially, I thought of creating a data table, parsing out the individual fields, then writing the data table to the database. The problems I see are :
- the file is 80K has over 200,000 records, so looping seems resource intensive for an ASP.nET page
- file must reside on a virtual directory
One other thought was to create a webservice that would consume the file and automatically import it into the database, is this reasonable for a file that size, how would I go about doing this?
Any and all help would be greatly appreciated! Thanks ahead of time! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Navin |
last post by:
HI,
Guys
There has been a lot of Ways to use paging in asp
1>Recordset approach -where whole records are pulled at client side...
and then only the records which are needed are filtered..
and...
|
by: Paul |
last post by:
Hi.
Just trying to find out the best approach as I beleive it might give me
problems later on down the road.
I have an ASP.NET application which references a shared database class which...
|
by: Matt Kruse |
last post by:
http://www.JavascriptToolbox.com/bestpractices/
I started writing this up as a guide for some people who were looking for
general tips on how to do things the 'right way' with Javascript. Their...
|
by: Andy Britcliffe |
last post by:
Hi
I'm faced with the situation where I could have a single physical file that
could contain multiplie XML documents e.g
file.txt contains the following:
<?xml version="1.0"...
|
by: milesm |
last post by:
I've spent the last 3 hours reading various MSDN articles, other site
articles and news group postings and was wondering what the best approach to
my situation would be since I'm unable to come up...
|
by: David Pinx |
last post by:
Greetings,
I will be developing an application that will have two versions, a web
application to be deployed at the client side and a windows application.
The question is, what would be the...
|
by: Ned Balzer |
last post by:
Hi all,
I am pretty new to asp.net; I've done lots of classic asp, but am just
beginning to get my mind wrapped around .net.
What I'd like to do is include some code that tests if a user is...
|
by: Rex |
last post by:
Hi All - I have a question that I think MIGHT be of interest to a
number of us developers. I am somewhat new to VIsual Studio 2005 but
not new to VB. I am looking for ideas about quick and...
|
by: bill |
last post by:
I am about to start on a module that will accept a location from
a user, use Google geolocation services to get the lat/lon and
then compute the distance from the site visitor to about 100
kennels...
|
by: gw7rib |
last post by:
I'm writing a program which has "notes" - these can appear on the
screen as windows with text in. It is possible to create an "index
note" - at present, this will contain a list of the titles (or...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |