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)

AX 2012 - Create Table permission denied in database 'tempdb'

(0) ShareShare
ReportReport
Posted on by 2,903

Hi All,

I'm running a script to update the vendor addresses and i'm getting the error like 

"Create Table permission denied in database 'tempdb'"

even after sufficient access has been provided in the tempdb still this error persists.

any suggestion to fix this resolve would be apprepricated

thanks.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Heinz Schweda Profile Picture
    1,367 on at

    Hi, a colleague of mine had this error some time ago, maybe the following link helps:

    http://msdn.microsoft.com/en-us/library/gg845661.aspx

    Remember also, that:

    • Only processes that run on the server tier can instantiate TempDB tables
    • The domain account that you use for the Microsoft Dynamics AX service must have read and write access to the TempDB database.

    Regards, Heinz

  • MuthukumaranAX Profile Picture
    2,903 on at

    Hi Heinz,

    Thanks for your response.

    The AOS service account has enough permission to tempdb and also in my code i am not using/calling any temp tables. It's totally weird for me.

    ~ Muthu

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    Sorry for asking, but are you sure that AOS service account has permissions?

    All permissions for tempdb are lost each time the SQL Server is restarted. Dynamics AX installer creates a stored procedure to restore AOS account permissions in such cases (in master database, something like "CREATETEMPDBPERMISSIONS_AOS_01")

    In case you changed the AOS account recently or just moved the database from another SQL Server than the stored procedure is missing and SQL Server restart will cause such error.

     

  • Community Member Profile Picture
    on at

    reboot AOS and install the update of this post.

    community.dynamics.com/.../74732.aspx

  • Ali Zaidi Profile Picture
    4,657 on at

    I got this error once, I follow the following link

    techguns.wordpress.com/.../create-table-permission-denied-in-database-

    tempdb-in-dynamics-ax-2012-r2/

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