I would like your help designing a custom server role (Or understanding if what I'm after is possible).
I'm sure this isn't a unique problem out there - I head up a data and analytics team, but our DBA sits in IT and is not a dedicated (or trained) DBA. We often have to wait several days for different team members to be granted the right access to DB's etc and it massively delays us. Understandably, IT won't give me sysadmin access, which is fair enough.
So I'd like to offer a custom server role for them to apply to all of my team's servers that enables me to:
- Access every database
- Add users to roles (such as dbreader, dbwriter)
- Add, alter, drop databases
- View all object defintions and DMO's for performance
Questions:
- Is this possible?
- Can it be achieved in a script? (it would be a lot easier if I could just give them a script to run)
Thanks in advance for any help you can give me!