Hi everyone,
When we are importing data into the db (SQL Server 2000) the transaction log file for this database grows and eats all available drive space (1 Gb). This causes the import to be rolled back.
The thing is that this data must be imported in an atomic transaction (all processes started under the transaction are to be committed or roll backed). The data is imported from a text file. Java program reads a line(record) from the file, converts it to the insert statement and inserts this record into the db (using JDBC API). One line is associated with the three insert statements and a few update statements. Importing twenty or thirty lines is OK. However, the above problem arises when a file has several hundred lines.
We restore our database using a backup file (we are not using transaction log files to restore a database).
We have set up a maintenance plan that "Removes unused space from the database files (if database size is more than 50 MB). Also we have set up "Auto Shrink" option on. Obviously it cannot shrink the transaction log while the actual transaction happens.
We would greatly appreciate if you could give a piece of advice on how to overcome this problem.
Thanks a lot.
When we are importing data into the db (SQL Server 2000) the transaction log file for this database grows and eats all available drive space (1 Gb). This causes the import to be rolled back.
The thing is that this data must be imported in an atomic transaction (all processes started under the transaction are to be committed or roll backed). The data is imported from a text file. Java program reads a line(record) from the file, converts it to the insert statement and inserts this record into the db (using JDBC API). One line is associated with the three insert statements and a few update statements. Importing twenty or thirty lines is OK. However, the above problem arises when a file has several hundred lines.
We restore our database using a backup file (we are not using transaction log files to restore a database).
We have set up a maintenance plan that "Removes unused space from the database files (if database size is more than 50 MB). Also we have set up "Auto Shrink" option on. Obviously it cannot shrink the transaction log while the actual transaction happens.
We would greatly appreciate if you could give a piece of advice on how to overcome this problem.
Thanks a lot.