Sql server. The current transaction cannot be committed and cannot support operations that write to the log file
begin tran begin try select case when 1=0 then 0.0 else '' end --this will not work end try begin catch --error has occured. But it doesnt matter. We want to continue anyway end catch select 1 --do something else commit --unfortunatelly this producess error "The current transaction cannot be committed and cannot support operations that write to the log file" What can I do to commit transaction? I know, select case when 1=0 then 0.0 else '' end is incorrect. Thats why it is in try/catch block (in real situations this is query defined by administrator). But I want to commit the rest of operation
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.