Software Development Network>> .NET Development>> SqlTransaction: Why is TableAdapter in generated dataSet.Designer.cs protected
I have the same problem, I find this code but I don't know if this is the best way.
Using
'Put your code here
transaccion.Complete()
You both should be using SQL Server stored procedures and using transactions there...not in your page code.
Your approach is opening yourself widely for hacks and exceptions.
Adamus
SqlTransaction: Why is TableAdapter in generated dataSet.Designer.cs protected
John Clark
I have the same problem, I find this code but I don't know if this is the best way.
Using
transaccion As New Transactions.TransactionScope'Put your code here
transaccion.Complete()
End UsingNathan Liebke
You both should be using SQL Server stored procedures and using transactions there...not in your page code.
Your approach is opening yourself widely for hacks and exceptions.
Adamus