I am working on an ASP.Net MVC 3 application using C# 4.0 and SQL Server 2008 R2. I have a scenario where:
- Several database rows are inserted into a SQL Server Database.
- An xml file built from the content of one of these rows is written to the file system.
Currently the database operations are wrapped in a TransactionScope and the file system write is the last operation before the call to TransactionScope.Complete().
I am trying to combine the file system write with the database inserts as a single atomic operation.
After reading a similar post I have tried using Transactional NTFS (TxF) and it seems to work OK. However within the team I work with there is some reluctance to use this due to the lack of evidence and experience with TxF.
What are other decent approaches/patterns that can be used to make a combined DB and file system change atomic?