How to transfer all data from one database to another

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default How to transfer all data from one database to another

    I have been trying to transfer a bulk of data into another database using the
    form method but when i tried copyin from the first database, they all inserted
    into one row in the second database. i also ried some other method like
    defining an array but it still didnt work. for example, i tried to send 10
    information into another database but they all end up insering into one row
    istead of 10. Please if anyone can help me with this, i will really appreciate
    it.

    neokafe Guest

  2. Similar Questions and Discussions

    1. Unable to transfer data
      I have a connection problem in Contribute. The first time I connected it worked just fine. The second time it didn't work anymore. It shows an...
    2. How do I transfer data from one pg to the next pg?
      I have a registration page that I would like to go to a welcome page when registration is complete. The welcome page will say "Welcome (name) your...
    3. Transfer data from Internet to local database
      I use a database on the internet from wich I retrieve Orders placed. I want to save the retrieved information to my local disk, and from there...
    4. Data transfer
      I'm still very new to .NET. I managed to write a web service using managed extensions for C++ and integrate it with existing business logic. The...
    5. perl data transfer
      SRam wrote: TCP streams? Have a look at the Net:: family of modules via search.cpan.org Steffen -- @n=(,,,,,);$b=6;@c=' -/\_|'=~/./g...
  3. #2

    Default Re: How to transfer all data from one database to another

    re:
    I have been trying to transfer a bulk of data into another database using
    the
    form method

    Not sure about anone else, but that statement makes little sense to me? The
    rest of it didn't get much better.

    Please try and explain this a little better.


    "neokafe" <webforumsuser@macromedia.com> wrote in message
    news:d0492v$364$1@forums.macromedia.com...
    >I have been trying to transfer a bulk of data into another database using
    >the
    > form method but when i tried copyin from the first database, they all
    > inserted
    > into one row in the second database. i also ried some other method like
    > defining an array but it still didnt work. for example, i tried to send
    > 10
    > information into another database but they all end up insering into one
    > row
    > istead of 10. Please if anyone can help me with this, i will really
    > appreciate
    > it.
    >

    gumshoe Guest

  4. #3

    Default Re: How to transfer all data from one database to another

    This sounds like a database question, not a CF question. Here are some
    possibilities
    - export from the old database and import into the new database
    - try SELECT INTO
    - if you are using SQL Server 2000, try BCP or DTS

    -brian

    "neokafe" <webforumsuser@macromedia.com> wrote in message
    news:d0492v$364$1@forums.macromedia.com...
    > I have been trying to transfer a bulk of data into another database using
    the
    > form method but when i tried copyin from the first database, they all
    inserted
    > into one row in the second database. i also ried some other method like
    > defining an array but it still didnt work. for example, i tried to send
    10
    > information into another database but they all end up insering into one
    row
    > istead of 10. Please if anyone can help me with this, i will really
    appreciate
    > it.
    >

    Brian Hogue Guest

  5. #4

    Default Re: How to transfer all data from one database toanother

    I'm not sure what the form is for. Please explain what you are trying to do with the form.
    cmschofield Guest

  6. #5

    Default Re: How to transfer all data from one database toanother

    One possibility:
    Set up a link from db1 to db2 then-
    <cfquery datasource="db1">
    INSERT INTO Customer2@db2
    SELECT * Customer2
    </cfquery>
    Thats kinda hokey, but it should work
    (in Oracle anyway)

    kyle969 Guest

  7. #6

    Default Re: How to transfer all data from one database toanother

    If you have to go through the form, do a <cfdump var="#form#"> on the
    processing page, I bet the elements are in lists. In which case you will have
    to:

    <cfloop from="1" to="#listlen(form.firstName)#" index="i">
    <cfquery datasourse="db2">
    INSERT INTO Customer2(firstName,Lastname,address)
    VALUES('#ListGetAt(Form.firstName,i)#',
    '#ListGetAt(Form.lastName,i)#',
    '#ListGetAt(Form.address,i)#')
    </cfquery>
    </cfloop>

    kyle969 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139