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. fill an access table with a dataset

fill an access table with a dataset

Scheduled Pinned Locked Moved Database
questioncsharpdatabasehelp
4 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.
  • P Offline
    P Offline
    pankajdaga
    wrote on last edited by
    #1

    Hi everyone, I am using ADO.NET with Access. I have a dataset filled from a data source which has one-to-one correspondance with an Access table. I would like to know what is the most efficient way to fill the Access table with this dataset. Should I iterate through the dataset and call SQL inserts?? I am hoping there is a better way. Thank you for any help you might give me. Sincerely, Pankaj Without struggle, there is no progress

    D 1 Reply Last reply
    0
    • P pankajdaga

      Hi everyone, I am using ADO.NET with Access. I have a dataset filled from a data source which has one-to-one correspondance with an Access table. I would like to know what is the most efficient way to fill the Access table with this dataset. Should I iterate through the dataset and call SQL inserts?? I am hoping there is a better way. Thank you for any help you might give me. Sincerely, Pankaj Without struggle, there is no progress

      D Offline
      D Offline
      dishanf
      wrote on last edited by
      #2

      Did you tried to use Table Direct for Fill data set D!shan

      P 1 Reply Last reply
      0
      • D dishanf

        Did you tried to use Table Direct for Fill data set D!shan

        P Offline
        P Offline
        pankajdaga
        wrote on last edited by
        #3

        Hi, I am sorry I do not understand what you mean. Could you please elaborate on it? My problem is that the dataset is filled from an SQL server database. Now I need to dump the contents of this dataset in an Access table. So, I would like to determine which is the most efficient way to do this. I can of course call an UPDATE statement for each row in the dataset, but I have a feeling that there might be a better way :D Thanks, Pankaj Without struggle, there is no progress

        D 1 Reply Last reply
        0
        • P pankajdaga

          Hi, I am sorry I do not understand what you mean. Could you please elaborate on it? My problem is that the dataset is filled from an SQL server database. Now I need to dump the contents of this dataset in an Access table. So, I would like to determine which is the most efficient way to do this. I can of course call an UPDATE statement for each row in the dataset, but I have a feeling that there might be a better way :D Thanks, Pankaj Without struggle, there is no progress

          D Offline
          D Offline
          dishanf
          wrote on last edited by
          #4

          Hi You can build a multi sql statement and execute it once!. you dont need to execute singel insert / update statements many times. Ex. sSQL = "INSERT INTO .....;INSERT INTO ...;INSERT.." executeQuery( sSQL ); HTH., D!shan :cool:

          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