Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ERROR MESSAGE

 
   Database Help (Home) -> Programming RSS
Next:  Unique Combinations Query (from the other end)  
Author Message
Ken

External


Since: Mar 06, 2007
Posts: 4



(Msg. 1) Posted: Fri Mar 02, 2007 5:27 pm
Post subject: ERROR MESSAGE
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Anyone have a idea about what is meant by below?
/****************************************/
Cannot roll back ken. No transaction or savepoint of that name was found.

Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK
TRANSACTION statement is missing. Previous count = 65, current count = 66.

/****************************************************************/

 >> Stay informed about: ERROR MESSAGE 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 2061



(Msg. 2) Posted: Fri Mar 02, 2007 11:40 pm
Post subject: Re: ERROR MESSAGE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ken (klee@jeromegroup.com) writes:
> Anyone have a idea about what is meant by below?
> /****************************************/
> Cannot roll back ken. No transaction or savepoint of that name was found.
>
> Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK
> TRANSACTION statement is missing. Previous count = 65, current count = 66.
>
> /****************************************************************/

The first message means that you said

ROLLBACK TRANSACTION ken

But nowhere had you ever said

BEGIN TRANSACTION ken

The second error means that you entered the transaction with a level
of no less than 65 nested transactions, and you left it with a level
of 66. This would indicate that the stored procedure said BEGIN TRANSACTION,
never committed or rolled back the transaction.

Of course, if it says

BEGIN TRANSACTION
....
ROLLBACK TRANSACTION ken
RETURN

you would get both the errors above.



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

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 >> Stay informed about: ERROR MESSAGE 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Rollback whole transaction save/keep error message/error s.. - Hi all, In SQL 2005, is it possible to rollback the entire transaction but save/keep the system generated error message/error severity information some where? I tried to store the error message in local memory but once rollback I lost it. Any ideas..

Please take a look at this query and its error message - This query was generate by Microsoft SQL Server Management Studio by right clicking a table and selecting script to. When I run the query against a different database (2k), I get the following error message: Msg 170, Level 15, State 1, Line 8 Line 8:...

How can I get error message and set as value - How can I catch and set the error message. for example I got system error message like " Msg 208, Level 16, State 6, Procedure sp_RunDBSqlScripts, Line 124 Invalid object name 'dbo.sp_RunDBSqlScripts_sqldev5. " set like set @errormessage = ...

ALTER TABLE error message 4929... - Hi, I've the following error message: ---------------- ALTER TABLE [dbo].[AnagraficoAutomezzi] ALTER COLUMN [CodiceXTrascodifica] varchar(10) Go Server: messaggio 4929, livello 16, stato 1, riga 1 Cannot alter table 'AnagraficoAutomezzi' because it i...

SQL 2005 Rollback transaction but commit error message - Hi all SQL 2005 gurus, I have an interesting question: In a loop process, is it possible to rollback one transaction if an error occured, but save the error message for this particular instance in a data table (or any where else)? Here is my scenrior: ...
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]