0

Our PT environment is SQL AlwaysOn just like our Prod environment. App Team now wants to drop a PROD BAK weekly, and maybe some Daily prior to a release; then restore to the PT AO AG.

Not wanting to use a Linked Server, what other ways could I drop the secondary DB

  1. Check if Primary node
  2. Remove DB from AG (puts secondary DB in restoring and which needs dropped)
  3. Restore DB to Primary
  4. Set to full (stand alone)
  5. Auto-seeding will sync to other node
asked Jun 12, 2023 at 19:43

1 Answer 1

0

use dbatools - its free, opensource and highly customizable.

What I would recommend depending downtime and disk space you have available (I do it daily for 15TB daily using dbatools)

Reference : Refresh SQL Server Always On Availability Group databases using DBATools PowerShell

answered Jun 13, 2023 at 15:16
1
  • Thanks, exactly what was used! Commented Jun 14, 2023 at 14:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.