Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Query to check if Secondary Replica has 'Create Database' right

$
0
0

Hi,

I am thinking of using autoseeding for our AlwaysOn. According to BOL ( https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/automatic-seeding-secondary-replicas?view=sql-server-2017 )  , I need to grant availability group the 'Create Database' right.  Is there any query that can check if the replica already has the right or now , instead of blankly run the grant permission ? I checked server role ( dbcreator ), but no joy. This makes sense as the AlwaysOn Group doesn't have a login. Can anyone please cast light on it ?

Many thanks !


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>