Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 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 October 7th, 2005, 09:24 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to acdsky
Default SQL Batch Processing?

Hi

I have got a question around the application we are in the process of designing. The VB6 app runs with SQL server and need to do a few million record inserts upon data input and a few hundred thousand updates after certian calculations. I would like to know of what the best way of doing this is?

I thought of using a SQL SP to do all the inserts, selects and Updates. What is the advantage in doing this? Would it remove some load on the VB6 app on the users PC? How would I handle errors? If I insert and commit after each record and record 1Million returns error...how would I rollback or allow for error to be fixed and continue? Would it be possible for me to build an Array of SQL queries and pass the array to the SQL SP and do all the processing and only commit right at the end?

I am toying around with tons of ideas at the moment and any input or sugestions would be highly appreciated.

Regards
Marnus





Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch problem Fr3c Other Programming Languages 0 January 16th, 2008 10:58 AM
Batch File Allan320 Access 10 June 8th, 2006 06:46 AM
BATCH scapermoya Other Programming Languages 0 May 1st, 2006 08:47 PM
yet another batch update billyducs Classic ASP Databases 1 July 31st, 2003 10:31 AM
batch update billyducs Classic ASP Databases 4 July 30th, 2003 11:11 AM





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