使用Management Studio成功将数据库实例脱机后,我尝试使用Management Studio将该同一数据库重新联机,并执行以下脚本.
ALTER DATABASE [dbname] SET ONLINE
这会导致以下错误
User does not have permission to alter database ‘dbname’,the database does not exist,or the database is not in a state that allows access checks.
@R_502_323@
事实证明,在RDS上,您可以使用上述标准sql脚本将实例脱机,但是Amazon要求您执行存储过程以使其重新联机;
EXEC rdsadmin.dbo.rds_set_database_online dbname
看这里更多http://docs.amazonwebservices.com/AmazonRDS/latest/UserGuide/Appendix.SQLServer.CommonDBATasks.html