1

Please let me know.. Can I use TransactionScope and SQL Transaction (Begin trans and Commit trans) at the same time.

Thanks,

Saw Al Gor
  • 91
  • 7

1 Answers1

0

Yes you can, but it is not recommended. Transactions are great, but they can lead to subtle concurrency problems (contention, deadlocks, and alike ...) that are hard to debug, so you should try to minimize the code inside transactions and manage them very carefully. If sometimes it's hard to people do it using a single technology, imagine using two...

Gerardo Lima
  • 6,467
  • 3
  • 31
  • 47