Using a SQL Connection repeatedly along with SQL Transaction?

I have a Windows application in which a major design change is to be implemented. Part of this redesign requires establishing a connection to the DB. This connection periodically gets closed and then reopened. In a specific section of the application, I have to write partial data to the database at the beginning of a certain process. When the process is finished, I write more data to the DB. All the data written in this process makes up a single transaction.

My question is this. Can I establish a single instance of a SQL Transaction and apply it to this process even though the DB Connection has been opened and closed multiple times?

Thanks!
BlakeMcKennaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
No. A transaction is only set inside a single connection.
There are distributed transactions but that's different. It's starting a transaction in one server and the transaction needs to access another database in another server. That doesn't seems to be your case.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BlakeMcKennaAuthor Commented:
Thanks Vitor...that's what I was looking for!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.