Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Tomdogggg #1
An easier way to insert data from Query Object intodatabase?
I'm currently using CFHTTP to get a CSV file and convert it into a QUERY
OBJECT. I want to take this query object and insert it into a DATASOURCE I
have setup on my server. Currently, I have to use CFLOOP to go through each
record; but there are 100,000 records!!! The operation is timing-out on me,
not to mention the obvious, taking FOREVER to do. Is there anyway to insert
ALL of the records from this QUERY OBJECT, into my DATASOURCE and do it with
less stress on COLDFUSION, and much more on the DATABASE(I don't want to use
CFLOOP)?
Tomdogggg Guest
-
Insert Object > Feather
Im new to InDesign and I cant understand why we dont have enough "image" options? It just so happens I am working on a brochure for a chicken farm... -
INSERT QUERY WEIGHT
Hi I would like to know if there is a limit in mysql to the weight of an insert query, I mean which size of data can I insert in my table at the... -
Easier way to insert 100000 records into MSACCESSdatasource?
I'm crashing my server with a CFLOOP command that loops through a query result set(query of queries). Is there anyway that I can insert ALL of the... -
SQL Insert Query using ADO
Hi, I am sending an SQL Insert query to my ADO connection object, my Insert query looks a litte like this... INSERT INTO tblRequests... -
DataAdapter Insert data into a query
I have the query "SELECT * FROM RIGHT JOIN VisiterInfo ON .=VisiterInfo." which I use to select data from two tables to display on screen. I use... -
Stressed_Simon #2
Re: An easier way to insert data from Query Object intodatabase?
What database?
Stressed_Simon Guest
-
Tomdogggg #3
Re: An easier way to insert data from Query Object intodatabase?
an MSACCESS database
Tomdogggg Guest
-
Tomdogggg #4
Re: An easier way to insert data from Query Object intodatabase?
I guess an idea I'm trying to get at is in the SQL statement, is there anyway I
can do this:
<cfquery datasouce="ds">
SELECT COLUMN_1,COLUMN_2,COLUMN_3
INTO DATABASE_TABLE
FROM QUERYOBJECT.THEQUERY
</cfquery>
Basically, I guess I'm trying to access 2 datasources in the same query.
Tomdogggg Guest
-
mattw #5
Re: An easier way to insert data from Query Object intodatabase?
If this doesn't have to be automated. Just use MSAccess to import the file.
Don't even bother with CF.
Otherwise, cfloop is pretty much your only choice. You could break it up
somehow such as sorting on an ID column, running the first 10,000 records, then
the next 10,000. I'm not sure exactly how to do this, but there should be a way
(maybe use cflocation after the cfloop and pass in the ID number to start with).
mattw Guest
-
mxstu #6
Re: An easier way to insert data from Query Object intodatabase?
Tomdogggg,
I agree with mattw. If this is a one time import, just do it directly in
Access. If not, then it may be possible to import a csv file into Access using
cfquery but without looping. Given the amount of data you're importing, I
don't know that it is the best solution, but I believe it is possible.
mxstu Guest



Reply With Quote

