You are here: Re: SET IMPLICIT_TRANSACTIONS ON « MsSQL Server « IT news, forums, messages
Re: SET IMPLICIT_TRANSACTIONS ON

Posted by Erland Sommarskog on 08/30/05 00:34

Driesen via SQLMonster.com (forum@SQLMonster.com) writes:
> The SET IMPLICIT_TRANSACTIONS ON syntax turns on Begin Transaction by
> default, yet when the ROLLBACK command is used everything in that
> session gets rolled back. Is there a way to use the set implicit command
> to rollback only the last transaction?

You can use SAVE TRANSACTION to set up save points. These you can roll back
to.

Note that in SQL Server nested transactions does not really exist. That is,
when you commit an inner transaction, all that happens is that a counter
is decremented.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация