How to implement two table insert code with SQL transaction at front end?
I have two tables, TblMaster and TblSub. If Tblsub insert fails, then TblMaster record should be roll back.
I have a common function ExecuteNonQuery in SQL helper class for inserting records.
Please suggest me way to resolve this issue.
Try this way