Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / March 2004

Tip: Looking for answers? Try searching our database.

Uploading file raw data into DB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MarkG - 30 Mar 2004 11:01 GMT
What is the best way (regarding the performance) to upload file lines to a table in DB

Running SP for each line or smth else..

Thanks
William \(Bill\) Vaughn - 30 Mar 2004 19:15 GMT
BCP or DTS.

Signature

____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

> What is the best way (regarding the performance) to upload file lines to a table in DB?
>
> Running SP for each line or smth else..?
>
> Thanks
Mark G - 30 Mar 2004 23:56 GMT
... and if I have to do some checks on each line
is there any way to store all the raw data (and some other corresponding data) in some intermediate object (dataset?), and then upload it to the table by one move
running SP n-times doesn't sound good

Thanks.
William \(Bill\) Vaughn - 31 Mar 2004 19:01 GMT
ADO won't help here unless you roll your own UPDATE statements in a batch
and execute the batch yourself.
I still think DTS (which can do some manipulation too) would be a better
approach. You can read the data from the source (or generate it), write to a
delimited file and then get DTS to upload it. Yes, round-trip scenarios are
going to be very slow.

hth

Signature

____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

> ... and if I have to do some checks on each line ?
> is there any way to store all the raw data (and some other corresponding data) in some intermediate object (dataset?), and then upload it to the
table by one move?
> running SP n-times doesn't sound good.
>
> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.