Insert large CSV into database - 504 error
I have an ASP page written in JavaScript that writes a CSV file into a database table.
while (!oFile.AtEndOfStream)
{
var s = oFile.ReadLine();
var sArr = s.split(",");
var sPostcode = String(sArr[0]).replace(re, "");
var sSuburb = String(sArr[1]).replace(re, "");
...stored procedure to write into database...
}
It works fine for smaller csv files (1,000 lines), but for larger files, it comes across a 504 error. Does anyone know a fix to this?
Help is very much appreciated.
f_atencia
Junior Poster in Training
59 posts since Aug 2009
Reputation Points: 10
Solved Threads: 4
Skill Endorsements: 0
Increased the buffer and seems to be working.
f_atencia
Junior Poster in Training
59 posts since Aug 2009
Reputation Points: 10
Solved Threads: 4
Skill Endorsements: 0
Question Answered as of 5 Months Ago by
AleMonteiro