在 SSMS 中使用 T-SQL DROP Azure SQL 数据库
DROP Azure SQL Database using T-SQL in SSMS
我无法在 SSMS
中 DROP
Azure SQL Database
DROP DATABASE xxxx
并得到这个异常
Msg 42019, Level 16, State 4, Line 2
DROP DATABASE operation failed. Internal service error.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.
如果您连接到 xxxx 数据库,则无法从内部执行删除数据库。您需要连接到主数据库,然后执行 DROP DATABASE xxxx
.
Azure SQL Database
You must be connected to the master database to drop a database.
The DROP DATABASE statement must be the only statement in a SQL batch and you can drop only one database at a time.
其次你应该检查是否有防止删除数据库的DELETE LOCK。
我无法在 SSMS
DROP
Azure SQL Database
DROP DATABASE xxxx
并得到这个异常
Msg 42019, Level 16, State 4, Line 2
DROP DATABASE operation failed. Internal service error.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.
如果您连接到 xxxx 数据库,则无法从内部执行删除数据库。您需要连接到主数据库,然后执行 DROP DATABASE xxxx
.
Azure SQL Database
You must be connected to the master database to drop a database.
The DROP DATABASE statement must be the only statement in a SQL batch and you can drop only one database at a time.
其次你应该检查是否有防止删除数据库的DELETE LOCK。