Permissions are generated in separated section, so it doesn’t possible see it in sql preview of table. You need go to DDL Script Generation (F9) to get sql code for permissions.
There are a few settings for generate permissions.
Generate Permissions Only to Object Types Selected on Tab What to generate(Detail Settings Tab)
Permission to Object (node in tree on What to Generate Tab)
this functionality is not implemented, but never mind I created macro that do it. It is very easy.
How Macro works:
Macro is design for SQL Server Models and TDM 6.3. Now you can right click on Entity and from popup menu choose item Macro, there will be new item “Generate Permission”. If you select this item SQL code for permission will be generated to Message Explorer.
You can modify macro how you want(Output can be to file…). If you need some help don’t hesitate contact me.
How Import Package with Macro:
In attachment is file “PermissionMacro.zip”. You can download this file and unpack it.
In TDM switch on expert mode (Main Menu - Settings- Options-General).
And choose from Menu - Expert Mode - Customization - Import Custom Package (It is only copy this file to package folder).
I appreciate Your work and thanks - but macro was not displayed. I have installed TDM 6.3.2.22 (licenced), file was imported (TDM restarted) and nothing happened
As You can see, this is detail of my entity with rights:
what database are you use? I presumed from “go” terminator that it is Microsoft SQL Server (2016) so macro was enabled only for this platform.
From your screenshot it is look like SAP ASE, but I’m not sure(TDM support a lot of database platforms).
In attachment is the new package and it has enabled SAP ASE. You need switch off TDM and overwrite on disc previous package. Folder where it is located you can find in Main Menu - Settings - Options- Paths-Advanced-Path to Packages. Default is
“C:\Users\XXX\Documents\Toad Data Modeler\Standard Installation\Packages{DCB5CB9B-CF65-4350-86B5-285D246FC5AC}”
If it is not SAP , please let me know your DB platform.
I have checked this macro again and it works for me. Open the popup menu of the entity, select Macro | Generate Permission and see the Message explorer. There should be a new message "Entity". If you double click on it to open detail you will see generated GRANT statement.