Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Rollback of transaction without raising an error

$
0
0

Hi!

Im trying to maintain some kind of programmer dignity in my SSIS-project, meaning implementing a lot of tests to verify wanted and the non occurence of unwanted behaviour.

My problem is this: I want to wrap all my tests in a global transaction which should be rolled back at the end so that data is not changed in the database afterwards. I would like to do this without having to raise an error. Why? Because I want all my test to be green. Everywhere. 

 I have tried to find some way through the script task/C# but I cant get hold of the transaction. Is there anyway to do this?

SQL Server 2012, Visual Studio 2010


Peter

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>