ShawnJClapper
Programmer
Hello all. I'm working on a project that is loading fairly large comma/return character seperates .txt files into a database. I know BULK INSERT is the fastest way to do this, however the company that is the web host for this won't allow me to have BULK INSERT permission so when trying it I get this error:
You do not have permission to use the BULK INSERT statement.
So, for now I'm just reading the file line by line with asp, splitting it by "," , looping and inserting. This takes about 10 to 15 minutes per file which is an annoying long time. The job also has to be run every night as an automated task (haven't really got to this part yet).
My question is, does anyone know some alternatives to using BULK INSERT that do not need special permissions and would be faster than looping through the file?
You do not have permission to use the BULK INSERT statement.
So, for now I'm just reading the file line by line with asp, splitting it by "," , looping and inserting. This takes about 10 to 15 minutes per file which is an annoying long time. The job also has to be run every night as an automated task (haven't really got to this part yet).
My question is, does anyone know some alternatives to using BULK INSERT that do not need special permissions and would be faster than looping through the file?