Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

What writes record to DEX_SESSION?

Posted on by 75,730

I have been watching the DEX_SESSION table for a client for about two weeks now. Every morning there is one new record added and the sqlsqr_spid is always 58. Is this trying to tell me something?

Categories:
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,928 Most Valuable Professional on at
    RE: What writes record to DEX_SESSION?

    Richard

    The Dexterity runtime writes the records during login. The SQL spid will be whatever SQL Process ID has been assigned by the SQL server.

    It is common to reuse available spid numbers.

    Also the 'sa' user is often given the same spid each time.

    David

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: What writes record to DEX_SESSION?

    Brandon, I will keep an eye on this. I do have SQL jobs at night that import new purchase orders and contracts. In my code I have logs indicating success/failure and I do not see any failures. I am wondering if one of the job just never closes.

  • Suggested answer
    Hokuminaria Profile Picture
    Hokuminaria 2,950 on at
    RE: What writes record to DEX_SESSION?

    Hello Richard,

    I found the following blog post that might be helpful. Please take a read through it.

    https://community.dynamics.com/gp/f/microsoft-dynamics-gp-forum/301743/dex_lock-and-dex_session-tables?pifragment-96056=1

    One thing i would also say is if you see this record every morning, do you have any SQL jobs or anything that runs over night every night that could be creating this record? I assume there is an automatic process that kicks off after hours.

    I hope this helps!

    Microsoft Support Engineer | Brandon Jarrett

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans