I have a SSDT project which setup to not drop anything.
Now I am trying to:
Now, the script to create new role (1) working fine, but there are nothing for the permission (2), I have tried to grant SELECT on schema/table but both not showing up in the resulting script.
I guess I am missing something but have no idea what it is, any pointer are welcome.
At the end the issue is nothing to do with the options but the user I use.
I am using a user with role db_ddladmin
, db_datareader
and db_datawriter
which will not generate the statement but also no error or warning.
Tried to use another user with role db_owner
then the statements is showing up as expected.
So the problem is about permission but not SSDT options.