Please let me know.. Can I use TransactionScope and SQL Transaction (Begin trans and Commit trans) at the same time.
Thanks,
Please let me know.. Can I use TransactionScope and SQL Transaction (Begin trans and Commit trans) at the same time.
Thanks,
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...