Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2004
    Posts
    10

    Unanswered: Mass SQL Inserts - performance :-(

    Hi,

    I have an user table with a single integer column. No indexes, no identities, nothing. I have to insert 600,000 rows via a client app. In tests, using BCP/Bulk Insert/DTS all runs OK (sub 3 seconds). However the app takes 5000 rows a second [considerably slower]. I can mimic this slow perfomance, within DTS, by removing the 'Fast Load' & 'Batch' options.

    Question= why would the SQL insert run slower on one server and as fast as BCP/Bulk Insert/DTS on another? What can I check on the 'slow' running server? May there be a file version anomally ??

    Version = SQL-2000 SP4

    Any help much appreciated !!!
    Thanks!!

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    do you have the code the app is using to perform the insert?
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Nov 2004
    Posts
    10
    Thanks for replying.

    No, unfortunately we don't have the SQL (its a third party application). Running SQL Profiler just shows lots of insert commands.

    I have some more info now. The app is using ODBC to talk to SQL-Server. The 'slow' server is SP4, the 'fast' server is SP3a.

    -Are there any performance problems with SP4/3a ?
    -Should we try and upgrade the SQL drivers (e.g. MDAC) ?
    -Is there something in registry (for ODBC) so we can check for default values (e.g. "fast load") etc.

    Cheers......
    Thanks!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •