PC Review


Reply
Thread Tools Rate Thread

Batch Processing

 
 
Shawn B.
Guest
Posts: n/a
 
      20th Mar 2007
Greetings,

I'm interesting in hearing about certain techniques that might enable me to
execute nonqueries in bulk much faster than one-by-one. Currently, we have
areas on the system that'll execute anywhere from 25 to 1000's in bulk but
it does so by sending the command each time.

One technique that I'm working on, in our data access layer (ADO.NET
wrapper, similar to but very different from the Data Access Block), a
BatchProcessor object, that queues up stored procedure commands (at the
moment just SP's), and converts them into a single string of "EXEC
usp_SPName @param1=...; EXEC usp_SPName @param1=...; etc" and executes that
single string. It actually does increase performance (not significantly on
fewer commands) but I was wondering if there are better ways (that don't
include making changes to the database or stored procedures).


Thanks,
Shawn


 
Reply With Quote
 
 
 
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      20th Mar 2007
I expect you're spinning your wheels. Check out the SqlBulkCopy or SSIS
interfaces that can do this FAR more efficiently.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
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.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

"Shawn B." <(E-Mail Removed)> wrote in message
news:e$(E-Mail Removed)...
> Greetings,
>
> I'm interesting in hearing about certain techniques that might enable me
> to execute nonqueries in bulk much faster than one-by-one. Currently, we
> have areas on the system that'll execute anywhere from 25 to 1000's in
> bulk but it does so by sending the command each time.
>
> One technique that I'm working on, in our data access layer (ADO.NET
> wrapper, similar to but very different from the Data Access Block), a
> BatchProcessor object, that queues up stored procedure commands (at the
> moment just SP's), and converts them into a single string of "EXEC
> usp_SPName @param1=...; EXEC usp_SPName @param1=...; etc" and executes
> that single string. It actually does increase performance (not
> significantly on fewer commands) but I was wondering if there are better
> ways (that don't include making changes to the database or stored
> procedures).
>
>
> Thanks,
> Shawn
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Button During Processing & Re-Enable After Processing? Donald A. Fisher Microsoft VB .NET 4 15th Dec 2007 06:08 AM
VBA Textrange Processing: Need help in processing multiple ranges david.f.jenkins@usa.net Microsoft Powerpoint 9 10th May 2005 12:43 AM
Batch Processing E-mails anonymous Microsoft Outlook 2 19th Aug 2004 04:37 PM
Processing logon batch files Craig Windows XP Networking 0 28th Aug 2003 07:01 PM
Batch Processing through the Web to HP Color LaserJet 2500 James Keneaster ABC:Services Windows XP Print / Fax 0 16th Jul 2003 04:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:59 PM.