Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Avoid Long Transactions

Status
Not open for further replies.

JoaoMendes

Programmer
May 8, 2002
3
PT
Hi !

I have a query that inserts several hundreds of thousands of recors in a table and i get this error-long transaction aborted.
Is there a way to avoid this? Is there an automated way of breaking the insert in several smaller pieces(by the way, removing the transactions in the database is not an option).

Regards
 
Hi:

You could always increase the number and size of your logical logs, but the potential for a long-transaction is still there.

You are on the right track by limiting the size of your "insert". You don't tell us how you're inserting, but I doubt there's a way of automatically breaking up the insert without logic and code changes.

Regards,


Ed
 
Hi Joao,

I have posted a FAQ on avoiding long transaction to this Forum. See is it of some use to you.

Regards,
Shriyan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top