July 3, 2016 at 1:16 am
hi,
i am getting this error"The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction "
please tel me some key words , show that i will search in my stored prcedure to find where loging is going on, some body said when u send email then also it comes , so it not only "write to the log".
yours sincerley
July 3, 2016 at 10:42 pm
Have you tried searching for "The current transaction cannot be committed and cannot support operations that write to the log file".
Also, any triggers on the tables?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 4, 2016 at 5:58 pm
rajemessage 14195 (7/3/2016)
please tel me some key words , show that i will search in my stored prcedure
TRY -- CATCH ?
_____________
Code for TallyGenerator
July 4, 2016 at 8:10 pm
Sergiy (7/4/2016)
rajemessage 14195 (7/3/2016)
please tel me some key words , show that i will search in my stored prcedureTRY -- CATCH ?
Or just BEGIN TRANSACTION?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 4, 2016 at 11:56 pm
Jeff Moden (7/4/2016)
Sergiy (7/4/2016)
rajemessage 14195 (7/3/2016)
please tel me some key words , show that i will search in my stored prcedureTRY -- CATCH ?
Or just BEGIN TRANSACTION?
Most likely - both.
First BEGIN TRANSACTION
followed by TRY -- CATCH
_____________
Code for TallyGenerator
July 5, 2016 at 9:31 am
i known begin tran and try cache , what i am asking is, which stmt might be the reason of generating this error.
your sincerley
July 5, 2016 at 1:07 pm
which stmt might be the reason of generating this error
Well, we would need to see the statements, at least...
July 5, 2016 at 1:29 pm
Are you using Try-Catch for handling the errors?
Remember the 'TRY' will immediately jump to the CATCH when there is an error.
Then, when you're in the CATCH, and if you are using the XACT_STATE to decide whether you can commit, make sure to
check the XACT_STATE before a COMMIT, not before a rollback.
Once you check the XACT_STATE and Rollback, then do the stuff needed like, sending DB email etc. Other wise you are going to see the error - 'can not write to log file'
July 5, 2016 at 2:02 pm
rajemessage 14195 (7/5/2016)
i known begin tran and try cache , what i am asking is, which stmt might be the reason of generating this error.your sincerley
BEGIN TRAN and TRY/CATCH are things to check for in code that may be a cause of this problem.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply