does SQL suport server nestled transactions?

does SQL suport server nestled transactions?

Post by Will Rickard » Sat, 01 Sep 2001 01:05:08



You wrap them in a warm fuzzy blanket.. ;)
JK

Use the OLEDB provider, ADO and have fun.
Connection.BeginTrans
Connection.CommitTrans

--
Will Rickards


> Please, can somebody give me more information about this.
> How can I do to use nested transactions in Visual Basic,
> using  SQL Server 7.0?

> Thank you!!!

 
 
 

does SQL suport server nestled transactions?

Post by Tibor Karasz » Sat, 01 Sep 2001 19:57:07


But even OLEDB cannot change the fact that SQL Server doesn't support nested
transactions...

--
Tibor Karaszi, SQL Server MVP
FAQ from Neil & others at: http://www.sqlserverfaq.com


> You wrap them in a warm fuzzy blanket.. ;)
> JK

> Use the OLEDB provider, ADO and have fun.
> Connection.BeginTrans
> Connection.CommitTrans

> --
> Will Rickards


> > Please, can somebody give me more information about this.
> > How can I do to use nested transactions in Visual Basic,
> > using  SQL Server 7.0?

> > Thank you!!!


 
 
 

does SQL suport server nestled transactions?

Post by Will Rickard » Sun, 02 Sep 2001 02:15:19


U Sure?
Books online seems to indicate that it does.
I believe I used nested transactions before, though I could be wrong.
Memory is not my strongpoint.

Are you referring to the fact that you can nest transactions but a commit
commits the whole thing, not just the nested transaction?  And you can only rollback the
outet transaction?

--
Will Rickards


> But even OLEDB cannot change the fact that SQL Server doesn't support nested
> transactions...

> --
> Tibor Karaszi, SQL Server MVP
> FAQ from Neil & others at: http://www.sqlserverfaq.com



> > You wrap them in a warm fuzzy blanket.. ;)
> > JK

> > Use the OLEDB provider, ADO and have fun.
> > Connection.BeginTrans
> > Connection.CommitTrans

> > --
> > Will Rickards


> > > Please, can somebody give me more information about this.
> > > How can I do to use nested transactions in Visual Basic,
> > > using  SQL Server 7.0?

> > > Thank you!!!

 
 
 

does SQL suport server nestled transactions?

Post by Tibor Karasz » Mon, 10 Sep 2001 22:04:22


You can nest BEGIN TRAN, but that doesn't give you the semantics of nested
transactions ("sub-transactions").
A COMMIT will only decrease nestlevel.
ROLLBACK will terminate the transaction (no matter how deep you are).

--
Tibor Karaszi, SQL Server MVP
FAQ from Neil & others at: http://www.sqlserverfaq.com


Quote:> U Sure?
> Books online seems to indicate that it does.
> I believe I used nested transactions before, though I could be wrong.
> Memory is not my strongpoint.

> Are you referring to the fact that you can nest transactions but a commit
> commits the whole thing, not just the nested transaction?  And you can only rollback
the
> outet transaction?

> --
> Will Rickards