Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Miller1229 #1
Importing a .Dat file into a DB using Coldfusion
We are currently receiving a txt file from another DB. We need to import this
file into a Database using coldfusion. The delimiter that is used is |. The
first row is the column header. Any help would be appreciated.
Miller1229 Guest
-
Importing text from a XML File
Hello I would like to import text from a XML file into a dynamic text field. The XML file contains database records. I have found that Flash... -
How to call a coldfusion function defined in other coldfusion file??
inside a.cfm, it has code fragment: <cfloop> <cfinclude template="b.cfm"> </cfloop> inside b.cfm, it has code fragment: ... -
Importing a text file into a DB using Coldfusion
Receiving a text file with the 1st row being the header row. I need to import this txt file into a Database using coldfusion. Any help would be... -
Importing Autocad File
Hi, I am in desperate need of some help. I need to export a autocad (2004) drawing to scale into Indesign CS. Can this be done, if so how? I... -
Importing file
When I import a file using the file() function it is screwing up any spanish accents and putting in some strange characters in their place. Is... -
Brad #2
Re: Importing a .Dat file into a DB using Coldfusion
I have always used the CFHTTP tag to read delimited flat files and then you
can loop the results into a query that inserts into a database. By default
the first row is used for column names and you specify the delimiter. Works
really well.
.....Brad
"Miller1229" <webforumsuser@macromedia.com> wrote in message
news:cvdho4$6bc$1@forums.macromedia.com...
We are currently receiving a txt file from another DB. We need to import
this
file into a Database using coldfusion. The delimiter that is used is |.
The
first row is the column header. Any help would be appreciated.
Brad Guest
-
LeadFoot #3
Re: Importing a .Dat file into a DB using Coldfusion
Using CFFILE to read the file in question is the only solution that I can think
of. A couple of things need to be addressed first:
1) What DB are you using (SQL Server, Oracle, Access, etc.)
2) Does the table that is being inserted into already exist?
If the table already exists, you will need to do some checking to see if the
values being imported are unique. If they are, you would do an insert. If the
value already exists, you would need to do an update (if that is what you want
to do).
LeadFoot Guest



Reply With Quote

