| Because of a known issue in Azure SQL Database, you cannot create [database copies](./database/database-copy.md#copy-using-transact-sql) and [geo-replicas](./database/active-geo-replication-overview.md#programmatically-managing-active-geo-replication) via T-SQL when a login is added to a [server role](./database/security-server-roles.md). Because database watcher logins must be [added to a set of server roles](#watcher-authorization), creation of database copies and geo-replicas via T-SQL stops working if you enable database watcher. | To create database copies or geo-replicas via T-SQL, remove the database watcher login from the `##MS_ServerPerformanceStateReader##`, `##MS_DefinitionReader##`, and `##MS_DatabaseConnector##` server roles. To restore database watcher functionality once a database copy completes or once a geo-replica is created, add the login to these server roles again to [grant the watcher access](database-watcher-manage.md#grant-access-to-sql-targets) to SQL targets.</br></br>Database copies and geo-replicas created in the Azure portal or programmatically via PowerShell, Azure CLI, and REST API are not affected. |
0 commit comments