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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans