Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

nesting stored procedures Expand / Collapse
Author
Message
Posted Tuesday, January 11, 2011 6:04 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, August 30, 2012 7:58 AM
Points: 35, Visits: 122
hi all,
when i tried to execute two nesting levels of stored procedures
example:


exec proc1

proc1(----)as
begin

exec proc2
end

proc2(----)
begin
exec proc3
end

proc3(---)





i got an error like this


Cannot roll back WORKFLOW. No transaction or savepoint of that name was found.


error 6401

can anyone help me out!!!!!
Post #1045840
Posted Tuesday, January 11, 2011 7:13 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 12:07 PM
Points: 15,562, Visits: 27,940
It sounds like you have a transaction rollback within one of the procedures, but no begin transaction statement. You have to either add a begin trans statement or remove the rollback.

----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1045888
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse