October 27, 2020 at 5:28 pm
I have Always ON setup between Server_A and Server_B (Primary server is Server_A and DR server is Server_B)
I have DB called ManagementDB which has 3 Data file 2 on D drive and 1 on C drive.
I need to moved Data file from C to d Drive. Since it has Always on Setup I am not able to Detach the DB.
So how can I can move the data file from C drive to D drive??
The DB size is 500 GB.
Regards,
Nita
October 27, 2020 at 5:38 pm
You wouldn't want to detach the db just to move a file. Just ALTER the file location in SQL Server, take the db offline, copy the file, then bring the db back online.
However, I don't think you can take a primary db offline that's in an AG either.
SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.
October 27, 2020 at 6:29 pm
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply