Hello All.
I am writing records into SQL Server DB from a file. How can i achieve the transaction control?
For me, even if a single record in the payload file fails, the entire transaction needs to be rolled back.
Is there a way i can achieve this??
DataBase transaction control
Moderators: chulett, rschirm, roy
DataBase transaction control
Avneet
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can set the Transaction size (row count) to 0.
Note, however, that all rows thereby become one transaction. Is SQL Server configured to handle transactions of this size?
Note, however, that all rows thereby become one transaction. Is SQL Server configured to handle transactions of this size?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.