Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
neokafe #1
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
-
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... -
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... -
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... -
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... -
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... -
gumshoe #2
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
-
Brian Hogue #3
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...the> I have been trying to transfer a bulk of data into another database usinginserted> form method but when i tried copyin from the first database, they all10> 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 sendrow> information into another database but they all end up insering into oneappreciate> istead of 10. Please if anyone can help me with this, i will really> it.
>
Brian Hogue Guest
-
cmschofield #4
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
-
kyle969 #5
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
-
kyle969 #6
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



Reply With Quote

