Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET Databases
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases 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 June 2nd, 2005, 08:27 PM
Authorized User
 
Join Date: Apr 2005
Location: , , .
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bulk Insert to Sql Server from .txt file

Hi

I get file having size around 70-80 mbs in the text format containing records on the daily basis. I want to save all the records in sql server database to the existing table and perform some calculations and restore them

I am looking for a way to automate the copying file to server and calculation part. I am considering to make a windows process in .net for this purpose.

Is there any better way to do the job?

Avats




Reply With Quote
  #2 (permalink)  
Old June 3rd, 2005, 04:44 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

The quickest way to get that much data into SQL Server on a daily basis is to use the bulk copy program in SQL Server. Look for bcp in the index of the SQL Server Books Online for more information about this program.

It sounds like you may want to bulk copy the data into a temp table in SQL Server and then use a stored procedure to process the records in the temp table, performing your calculations, and then insert those records into your permanent table.

Thearon
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 insert Data from Excel file to SQL server yes_no ASP.NET 1.0 and 1.1 Professional 5 August 27th, 2008 12:46 AM
how to insert text file in sql server database sharvari_mothe Java Databases 3 June 5th, 2007 07:25 AM
Using Bulk Insert with SQL Server 2005 ninel SQL Server 2005 2 August 29th, 2006 03:52 PM
write values to txt file in server eresina Javascript 7 July 19th, 2005 08:23 AM
write values to txt file in server eresina Javascript How-To 1 July 19th, 2005 05:11 AM



All times are GMT -4. The time now is 10:52 AM.


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