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. General Programming
  3. Visual Basic
  4. sql question

sql question

Scheduled Pinned Locked Moved Visual Basic
databasequestion
6 Posts 4 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.
  • M Offline
    M Offline
    maytel mynt
    wrote on last edited by
    #1

    looking for an alternative and efficient way to transfer table records from one database to another database. could it be done with one sql? ty in advance maytel

    G 1 Reply Last reply
    0
    • M maytel mynt

      looking for an alternative and efficient way to transfer table records from one database to another database. could it be done with one sql? ty in advance maytel

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      If the databases are in the same server, and the database user account has access to both, you can easily copy data from one database to another:

      insert into database2..someTable (oneField, anotherField)
      select oneField, anotherField
      from database1..SomeTable

      Despite everything, the person most likely to be fooling you next is yourself.

      M 1 Reply Last reply
      0
      • G Guffa

        If the databases are in the same server, and the database user account has access to both, you can easily copy data from one database to another:

        insert into database2..someTable (oneField, anotherField)
        select oneField, anotherField
        from database1..SomeTable

        Despite everything, the person most likely to be fooling you next is yourself.

        M Offline
        M Offline
        maytel mynt
        wrote on last edited by
        #3

        ty for the prompt help but could i ask for code sample? insert into C:\database2... select * from c:\database1... ty

        A 1 Reply Last reply
        0
        • M maytel mynt

          ty for the prompt help but could i ask for code sample? insert into C:\database2... select * from c:\database1... ty

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          What type of database? It looks like you may be talking access here?

          Bob Ashfield Consultants Ltd

          M 1 Reply Last reply
          0
          • A Ashfield

            What type of database? It looks like you may be talking access here?

            Bob Ashfield Consultants Ltd

            M Offline
            M Offline
            maytel mynt
            wrote on last edited by
            #5

            sorry yup im using access

            _ 1 Reply Last reply
            0
            • M maytel mynt

              sorry yup im using access

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

              maytel mynt wrote:

              using access

              So use File-->Get External Data-->Import to import the tables you want.

              -------------------------------------------------------- Knowledge is knowing that the tomato is a fruit. Wisdom is not putting it in fruit salad!!

              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