The database with name '%{DBName/}', ID '%{DBId/}' is not in ReadWrite mode (either read-only or read-only exclusive) and ...

The database with name '%{DBName/}', ID '%{DBId/}' is not in ReadWrite mode (either read-only or read-only exclusive) and can only be overwritten by a server administrator when the server is running in Azure mode. The current user is neither a server administrator using non-scoped connection nor a server admin running ImageLoad (or Restore) command using scoped connection.