Click here to Skip to main content
16,021,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,

Is it possible check whether a transaction object exist or not?

DbTransaction trn = con.BeginTransaction();


In some places i commited the transaction(trn) or rollback it.
If trn committed or rollback, i need to begin a new trasaction.
Else use existing transaction.
Is it posiible?

Thanks in advance..
Posted
Updated 6-Oct-10 2:09am
v3
Comments
Ankur\m/ 6-Oct-10 8:46am    
Please do not add answer if you need to clarify something with the answerer. He is not notified. Instead use 'Add Comment' below his answer, like I did.

1 solution

 
Share this answer
 
Comments
Ankur\m/ 6-Oct-10 8:45am    
[moved from answer]:
Rohini Deepu wrote:
Sorry, i need to optimize transaction using C#

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900