Question
How to insert million records ?
Hello everybody.
I'm working with CFMX7 and SQL SERVER 2005 on WIN 2003 standard edition.
I 've to export thousands and thousands records from txt files (csv format) to a sql server 2005 DB.
I use CFHTTP to read the txt file and stored procedure to insert data to my table,
First problem: I put correct datatype for datetime but always get a error : "Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query. "
Second problem:t since each txt files content at least 80 000 records, it takes a very long time and i always get a 500 NULL message (I don't know what is it).
Is there a solution more efficient to import milion records ???
thank you
I'm working with CFMX7 and SQL SERVER 2005 on WIN 2003 standard edition.
I 've to export thousands and thousands records from txt files (csv format) to a sql server 2005 DB.
I use CFHTTP to read the txt file and stored procedure to insert data to my table,
First problem: I put correct datatype for datetime but always get a error : "Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query. "
Second problem:t since each txt files content at least 80 000 records, it takes a very long time and i always get a 500 NULL message (I don't know what is it).
Is there a solution more efficient to import milion records ???
thank you
