![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- Hi, I have 5 DTSsses that are executed by a Main DTS. All packages insert lots of data into our DB. I've noticed that our Server's transaction log reached its limit of 100 GB. We cleaned the log file and now we are back in business. What is the best practice when inserting lots of data into the db? What to do about the Transaction Log file fenomenal growth ratio??? How to commit these transactions before executing the next DTS? I've read about doing batch inserts of 1000 rows, and checkpoint... How to do checkpoint? Thanks in advance! . |
#3
| |||
| |||
|
|
Couple things: You might want to drop any existing indexes before you insert the data, if you are deleting an entire table, use truncate instead of delete (minimal-logged), think about using BCP, bulk insert or select into (if possible, they are minimally logged as well) You also might want to run in batches and truncate your log in between batches (again, depends on when and on what your inserts occur on) HTH Ray Higdon MCSE, MCDBA, CCNA -----Original Message----- Hi, I have 5 DTSsses that are executed by a Main DTS. All packages insert lots of data into our DB. I've noticed that our Server's transaction log reached its limit of 100 GB. We cleaned the log file and now we are back in business. What is the best practice when inserting lots of data into the db? What to do about the Transaction Log file fenomenal growth ratio??? How to commit these transactions before executing the next DTS? I've read about doing batch inserts of 1000 rows, and checkpoint... How to do checkpoint? Thanks in advance! . |
#4
| |||
| |||
|
|
Thanks for the follow up, Im gonna run it in batches, i cannot use Bulk Copy. How do I truncate the log in between batches? thanks in advance! "Ray Higdon" <rayhigdon (AT) higdonconsulting (DOT) com> wrote Couple things: You might want to drop any existing indexes before you insert the data, if you are deleting an entire table, use truncate instead of delete (minimal-logged), think about using BCP, bulk insert or select into (if possible, they are minimally logged as well) You also might want to run in batches and truncate your log in between batches (again, depends on when and on what your inserts occur on) HTH Ray Higdon MCSE, MCDBA, CCNA -----Original Message----- Hi, I have 5 DTSsses that are executed by a Main DTS. All packages insert lots of data into our DB. I've noticed that our Server's transaction log reached its limit of 100 GB. We cleaned the log file and now we are back in business. What is the best practice when inserting lots of data into the db? What to do about the Transaction Log file fenomenal growth ratio??? How to commit these transactions before executing the next DTS? I've read about doing batch inserts of 1000 rows, and checkpoint... How to do checkpoint? Thanks in advance! . |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |