﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Begin transaction ........... commit transaction / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 18:31:56 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Begin transaction ........... commit transaction</title><link>http://www.sqlservercentral.com/Forums/Topic889999-146-1.aspx</link><description>[quote][b]GTR (3/26/2010)[/b][hr]Check this, it should answer your question[url]http://msdn.microsoft.com/en-us/library/ms189336(SQL.90).aspx[/url][/quote]This method would allow the OP to place a transaction in both stored procedures (thus nest the transactions).</description><pubDate>Fri, 26 Mar 2010 23:29:12 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: Begin transaction ........... commit transaction</title><link>http://www.sqlservercentral.com/Forums/Topic889999-146-1.aspx</link><description>Check this, it should answer your question[url]http://msdn.microsoft.com/en-us/library/ms189336(SQL.90).aspx[/url]</description><pubDate>Fri, 26 Mar 2010 15:24:19 GMT</pubDate><dc:creator>GTR</dc:creator></item><item><title>RE: Begin transaction ........... commit transaction</title><link>http://www.sqlservercentral.com/Forums/Topic889999-146-1.aspx</link><description>Look up Try Catch in BOL.  That will help you with being able to rollback the transaction.</description><pubDate>Thu, 25 Mar 2010 10:42:59 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>Begin transaction ........... commit transaction</title><link>http://www.sqlservercentral.com/Forums/Topic889999-146-1.aspx</link><description>Hi,   I have this stored procedure: create stored procedure testasBegin   update table xtu set cod ='A'Endif i execute this stored procedure from inside other stored procedure, like this:create procedure test2asBEGINdeclare @erro as intbegin transactionexec testset @erro =@@errorif @erro =0begincommit transactionendelserollback transactionENDIf i get an error when executing the procedure test can i rollback the transaction that was made by the procedure test? or should i place a BEGIN TRANSACTION and COMMIT TRANSACTION inside the stored procedure test , so that i can rollback transaction from within procedure test2 if procedure test fails?Thank you</description><pubDate>Thu, 25 Mar 2010 10:39:52 GMT</pubDate><dc:creator>river1</dc:creator></item></channel></rss>