sometimes running a Job in AX will cause above error.
Request for the permission of type ‘SqlStatementExecutePermission’ failed.
(C)Jobstest – line 21
Run this job on Server.
How to run in server:
Create a menu item of type action, give the object type as Job ,and object name , and set the property Run on as” Server “.