I have C# code (wcf) connects to a DB and inserts an entire "report" including address table, person table, etc. which all must be done by calling stored procedures. On a side note, some stored procedures may be called multiple times (as we may have multiple people and multiple addresses, etc in a report)
Insert address (by calling the spInsertAddress) Insert person (by calling the spInsertPerson) Insert Item (calling another stored procedure) throws an error (maybe too many characters, or inserting wrong value for a date/time field)
How do I undo all the changes the stored procedures made since they have already been made?
Found this article on MSDN explaining how you can add a transaction via C# and using a try/catch you can either commit or rollback the transaction