i have a problem with large data import to a db in sql server.. Actually i have an application that collects data from an environment and dispatches this data to different csv files for sql server to bulk insert.. Each csv file corresponds a table in db.. After generating csv files on the application server(as a result csv files are remote files for the sql server), the dump process takes so much time that sometimes causes transaction log to fill up.. After reading articles, for the name of performance i changed recovery mode of db to simple and locate the log file of db to some other disk drive.. i also copy csv files to sql server manually but the result is almost same.. What can i do to increase the performance of bulk import?
i have a stored procedure that takes the path of remote file and the table name for bulk insert. i am not actually sure what is going under but for another db with recovery mode set to full import operation is sometimes 10 times faster than my db.. i am stuck in solving and understanding the mechanisms.. Changing recovery mode or using the existing db's create script to regenerate the db to bulk insert did not seem to have the same performance with the other db..
To sum up all i need to do is to import very large data to a db from csv files to corresponding tables.. this db can also be dropped and created to before bulk insert to increase performance and i do not need any backup/restore utility on this db..
i have a stored procedure that takes the path of remote file and the table name for bulk insert. i am not actually sure what is going under but for another db with recovery mode set to full import operation is sometimes 10 times faster than my db.. i am stuck in solving and understanding the mechanisms.. Changing recovery mode or using the existing db's create script to regenerate the db to bulk insert did not seem to have the same performance with the other db..
To sum up all i need to do is to import very large data to a db from csv files to corresponding tables.. this db can also be dropped and created to before bulk insert to increase performance and i do not need any backup/restore utility on this db..
Comment