We are performing a migration from BTrieve to SQL 7. Last night while inserting the results of a two table join that resulted in a table of 14.6 million records, we found that increasing the size of the tempdb, while allowing automatic growth of the log file, with "Truncate on Checkpoint" set to on, was the only way to get this operation to finish.
Is there a way to perform a DML statement such as an insert or an update, but to limit it to say 1 million records at a time? In other words, I want to perform the same query or procedure, but in smaller chunks. Because the incoming data is so twitchy, I do not want to break the query up into parts, because I think in this case, the whole will not equal the sum of the parts.
Thanks
jkb3
Is there a way to perform a DML statement such as an insert or an update, but to limit it to say 1 million records at a time? In other words, I want to perform the same query or procedure, but in smaller chunks. Because the incoming data is so twitchy, I do not want to break the query up into parts, because I think in this case, the whole will not equal the sum of the parts.
Thanks
jkb3