If default ‘sa' account has sys_admin permissions for the whole SQL instance and all its databases. On the database itself, if I don’t have db_datareader permission enabled, I would assume it doesn’t need it as it is implied but I was wondering in .net, is there way to check if db_datareader has explicitly been enabled and not just implied from the ‘sa' being a sys_admin.
If default ‘ sa’ account has sys_admin permissions for the whole SQL instance and
Share
play around with the syspermissions catalog:
Also, you can use these scripts to get Permissions of youe Username / Userlogin on Server / Database