Cannot bring db "online" after taking offline

1

So, I took MS SQL Server DB offline. Now I am trying to bring it online and get error:

TITLE: Microsoft.SqlServer.Smo

Set offline failed for Database 'zzz'.

For help, click: https://go.microsoft.com/fwlink?ProdName=Microsoft_SQL_Server&ProdVer=16.100.46041.41_(SMO-master-A)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Set_offline+Database&LinkId=20476


ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

User does not have permission to alter database 'zzz', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed. (Microsoft SQL Server, Error: 5011)

katit2
asked 3 years ago674 views
2 Answers
1

Found. Should run special command, SSMS won't do:

EXEC rdsadmin.dbo.rds_set_database_online <Name of database>

katit2
answered 3 years ago
0

Thanks for posting your fix! worked for me

Luke
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions