Re: Bulk Insert

From: Angel Saenz-Badillos[MS] (angelsa_at_online.microsoft.com)
Date: 05/07/04


Date: Fri, 7 May 2004 10:57:23 -0700

James,
Make sure that you are executing your batch inside of a transaction, that
way the server will only commit the data once improving performance. Please
note that there may be backend limitations to the size and the number of
parameters of the batch, for example for Sql Server 2000 you can pass a max
of 2000 parameters and 250mb of data.

Sorry no information on when 2.0 will come out, have you tried the pdc
alpha? I would like to get some feedback on the Adapter batch update and on
SqlBulkCopy.

-- 
Angel Saenz-Badillos MS] Managed Providers
This posting is provided "AS IS", with no warranties, and confers no
rights.
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.
"James Autry" <j.m.autry@Austin.rr.com> wrote in message 
news:hEimc.68535$Dn1.46649@fe2.texas.rr.com...
>I managed to get a performance boost from doing a batched INSERT SQL
> Statement using ExecuteNonQuery rather than using the DataAdapter/Dataset
> method for inserting multiple rows.  I noted, however, that only so many
> inserts could be batched before performance dropped again. Is this due to
> server command queue cache size, or something like that?
>
> Also, does anyone know when ADO 2.0 is supposed to come out?
>
> 


Relevant Pages

  • RE: Secure FTP Client
    ... If you desire to use scp/sftp transfers in an unattended batch script ... server is authenticated by providing its public key and most software ... asks you to confirm it by displaying its fingerprint. ...
    (Security-Basics)
  • Re: Running Scheduled Tasks Remotely Without Full Administrator Ri
    ... It seems that in order to CREATE a task, one must be an administrator. ... What if you give the user "Run as Batch" right explicitly? ... try to create the scheduled task with the test user. ... MCSA Windows 2003 server ...
    (microsoft.public.windows.server.general)
  • Re: Joins and Scability
    ... > We have a client server application where a lot of business logic is ... > executed in stored procedures in SQL Server. ... better news is that executing business logic in SQL is generally much faster ...
    (microsoft.public.sqlserver.programming)
  • Re: Global variables and DTS Packages
    ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... > different servers whenever a batch is paid-off. ... > VB6 application to DTS package which will create a SQL ...
    (microsoft.public.sqlserver.dts)
  • Re: Batches
    ... As Tibor stated it will be one batch and not 7000 individual round trips. ... building a single string I could have answered that more appropriately. ... > This is just the standard method of the built in .NET SQL Server data> provider. ...
    (microsoft.public.sqlserver.programming)