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. Need to import a table & Query from one mdb to other

Need to import a table & Query from one mdb to other

Scheduled Pinned Locked Moved Database
databasehelp
4 Posts 3 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.
  • H Offline
    H Offline
    honeyashu
    wrote on last edited by
    #1

    Hi all, I have to import a table & a Query from c:\Programfile\asd\MyProject\test.mdb to c:\document&settings\ applicationdata\test.mdb. I have created & established the Connection string & all. the only thing i am not getting is Query needed to pass... Please help.. Ashish

    _ 1 Reply Last reply
    0
    • H honeyashu

      Hi all, I have to import a table & a Query from c:\Programfile\asd\MyProject\test.mdb to c:\document&settings\ applicationdata\test.mdb. I have created & established the Connection string & all. the only thing i am not getting is Query needed to pass... Please help.. Ashish

      _ Offline
      _ Offline
      _Damian S_
      wrote on last edited by
      #2

      Open the destination database using Access, then click File-->Get External Data-->Import and select the tables/queries you want. This is the simplest way!!

      I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! Booger Mobile (n) - A bright green 1964 Ford Falcon - our entry into the Camp Quality esCarpade!! Do something wonderful - make a donation to Camp Quality today!!

      H 1 Reply Last reply
      0
      • _ _Damian S_

        Open the destination database using Access, then click File-->Get External Data-->Import and select the tables/queries you want. This is the simplest way!!

        I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! Booger Mobile (n) - A bright green 1964 Ford Falcon - our entry into the Camp Quality esCarpade!! Do something wonderful - make a donation to Camp Quality today!!

        H Offline
        H Offline
        honeyashu
        wrote on last edited by
        #3

        Thanx but i need it to implement in my C# code... So i need a query to execute this step :)

        M 1 Reply Last reply
        0
        • H honeyashu

          Thanx but i need it to implement in my C# code... So i need a query to execute this step :)

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          If you are doing it in the client (c#) then you need to get the data from one database, hold in in a datatable while you establish a connection to the target database and use the second connection to write the records over that connection. You can of course open 2 connections before starting the process!

          Never underestimate the power of human stupidity RAH

          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