Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET Databases
|
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 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 June 2nd, 2005, 08:27 PM
Authorized User
 
Join Date: Apr 2005
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




 
Old June 3rd, 2005, 04:44 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
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





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





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