I have Some Command Like Insert, Update, Create and so on that i want to run them in some database in a SQL instance. i use transaction scope for this and i want to run all of the commands on all databases even if some errors occurred. if some error had happened i want to show all errors to user without committing the right commands. but in transaction when it reaches the first error, it'll be rolled back and i can't continue running other commands. my commands are like this :
using Trans as new TransactionScope
con.open()
for i as integer = 0 to n
Try
com.commandtext = coms(i)
com.executenonquery()
catch ex as exception
errorCollection.add(ex.message)
continue for
end try
next
end using