web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Update Number sequence table Sleeping session on AX 2012 R2

(0) ShareShare
ReportReport
Posted on by 375

Hi All,

I am seeing at least 20 to 30 sleeping SQL connections with update number sequence table on SQL idle in a random pattern.

We dont see any users complaining about the number sequence on any modules. However I would still like to investigate the issue to avoid any future issues.

UPDATE NUMBERSEQUENCETABLE SET NEXTREC=@P1,RECVERSION=@P2,MODIFIEDTRANSACTIONID=@P3 WHERE ((RECID=@P4) AND (RECVERSION=@P5))

Has anyone come across this issue before.

Thanks

Kathiravan T

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at

    Hi Kathiravan,

    Sleeping sessions are not really an issue unless there will be too many... Read this blog: littlekendra.com/.../confused-by-sp_who2-dear-sql-dba-episode-30

  • kathiravan Thirugnana sambandam Profile Picture
    375 on at

    Thank you Andre for sharing your thoughts!!!

    I haven't seen this behavior in any of the environments except production. I see these counts adding up gradually about 20 sessions in 4 hours on the same update statement

    I did sql profiler to capture the updates on the numbersequence table not all the updates are ending in sleeping state.

    I suspect if the update statements are orphaned by the AOS servers for any reason.

    Thanks

    Kathiravan T

  • André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at

    I have seen sleeping sessions in the past, but never paid that much attention what statement was executed then.

  • kathiravan Thirugnana sambandam Profile Picture
    375 on at

    Hi Andre,

    Monitoring further below is what i found in the event viewer of AOS servers

    Object Server 01:  The database reported (session 40 (admin)): [Microsoft][SQL Server Native Client 10.0]Communication link failure. The SQL statement was: ""

    Thanks

    Kathiravan T

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at

    Hi Kathiravan,

    It might indicate that connections are not stable. I would suggest to find similar events to see if this was an incident or a recurring issue.

  • kathiravan Thirugnana sambandam Profile Picture
    375 on at

    Hi Andre,

    you are right, The SQL server has two Nic connecting one to the DR site. The DNS is registered with two ip address on the SQL server FQDN.

    The AOS servers are not able to reach the SQL server with the DR(IP address). I added a host entry on the AOS servers to force connecting the SQL on the primary ip address. Hoping this should solve the issue

    I dont see any orphaned sessions for the past 15 hours. I will keep you posted.

    Thank you for your help and valuable suggestions. Highly appreciated!!

    Regards,

    Kathiravan T

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans