Achieving autonomous transaction in SQL server 2008 -


i have requirement below.
using sql server 2008.

1. table (id)
2. table b (id, attr1, attr2, attr3)

table , table b have same no of rows. id primary key in both tables there no referential relationship defined.

i have trigger on table insert. if record inserted in table a, insert same id in table b , calculate few attributes , populate them in table b id. achieving using trigger.
if transaction fails in table b, don't want transaction in table failed. irrespective of trigger succeeds or fails in updating table b, want table transaction success , not dependent on table b transaction. how achieve that?

helpful link how create autonomous transaction in sql server 2008


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -