DataBase transaction control

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
s_avneet
Participant
Posts: 22
Joined: Wed Aug 31, 2016 8:28 am

DataBase transaction control

Post by s_avneet »

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??
Avneet
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply