AWS RDS SQL Server unable to drop database

后端 未结 4 1900
慢半拍i
慢半拍i 2021-01-02 02:23

I tried to migrate a SQL Server database by Export Data-tier Application (.bacpac file) from an Amazon RDS instance to other, but import didn\'t succeed. So now

4条回答
  •  -上瘾入骨i
    2021-01-02 03:06

    I ran into this same issue. After trying to restore a database via SSMS using a .bacpac, it fails and leaves you with a database that you appear to not have permissions to drop.

    A workaround, is to use the rdsadmin rename function to rename it to something else, which then seems to fix the permission issue and allows you to drop it.

    EXEC rdsadmin.dbo.rds_modify_db_name N'', N''
    

    Then just drop the DB. Hope that helps someone else in the same predicament.

提交回复
热议问题