Hello,
have received some problem that customer reported (just note that I'm a DBA and not application developer). We use Dynamics AX application and after AOS started and 12 hours after this we are getting AOS session is remained with open transaction and X lock on sysserversessions table.
I have checked default EE session to check error_reported event and didn't find any errors, after this I have created EE session to grab rpc_started\completed, sp_statement_completed\started, sql_statement_completed/started + error_reported. I have created an EE session to track events of lock_acquired/released for object SYSSERVERSESSIONS.
For example we are getting such problem
Usually AOS runs such block of transaction and we have "begin" and "commit" of transaction :
After some time we are getting open transaction that just is not commited and stay open unexpectedly , we just can kill this session. No blockings or deadlocks , no error_reported. What can be a problem ? I didn't find any database signs of problem , can be there application logic issue ? Any help appreciated , sorry if some info there is mis-topic , this problem is headscratching for me now.