Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Bulk Insert (ADO/Access2000)

Bulk Insert (ADO/Access2000)

Scheduled Pinned Locked Moved Database
questiondatabaseperformance
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ssirisha
    wrote on last edited by
    #1

    I would have to insert around 500 records every 10 seconds into a table in Access 2000. I am using ADO. What is the most efficient way to do this with good performance. Is it possible to pass all of the 500 records to a query using some kind of SafeArray parameters and Insert them all at once? Any tips how this can be accomplished ? Thanks

    M 1 Reply Last reply
    0
    • S ssirisha

      I would have to insert around 500 records every 10 seconds into a table in Access 2000. I am using ADO. What is the most efficient way to do this with good performance. Is it possible to pass all of the 500 records to a query using some kind of SafeArray parameters and Insert them all at once? Any tips how this can be accomplished ? Thanks

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      I think stored procedure is the best way. Mazy **"If I go crazy then will you still Call me Superman If I’m alive and well, will you be There holding my hand I’ll keep you by my side with My superhuman might Kryptonite"**Kryptonite-3 Doors Down

      S 1 Reply Last reply
      0
      • M Mazdak

        I think stored procedure is the best way. Mazy **"If I go crazy then will you still Call me Superman If I’m alive and well, will you be There holding my hand I’ll keep you by my side with My superhuman might Kryptonite"**Kryptonite-3 Doors Down

        S Offline
        S Offline
        ssirisha
        wrote on last edited by
        #3

        Could you please help me in with a small sample code. Do I have to send the records as an array and loop the INSERT statement for all records? I am not quite sure if all this is possible in ACCESS. I guess my question would be can I pass an array to Stored proceedure, if Yes how? Thanks for your time.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups