[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

to drop a db in Availability Group (2012) and add it back.

Posted on 2014-08-19
2
Medium Priority
?
230 Views
Last Modified: 2014-09-08
is the below 3 statement suffice if a proper backup is handy?

ALTER AVAILABILITY GROUP MyAG REMOVE DATABASE SomeDB
RESTORE WITH REPLACE OVER SomeDB with an older backup file
ALTER AVAILABILITY GROUP MyAG ADD DATABASE SomeDB

will this work even if SomeDB has encryption enabled?
0
Comment
Question by:25112
2 Comments
 
LVL 60

Accepted Solution

by:
Kevin Cross earned 2000 total points
ID: 40270438
The sequence looks correct.  Just make sure you have the appropriate backup with associated transaction logs.
0
 
LVL 5

Author Comment

by:25112
ID: 40310990
thx
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question