I have a collection of data. I need to insert these records into SQL Server 2008. I also need to maintain transaction, so that if one insert fails, I need to rollback all the changes done.
Can some one suggest a best way to do this? I use .Net 3.5.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Read all about TransactionScope and System.Transactions.