0

I have SQL Server 2008 R2 with 323 databases consuming some 14 GB on my C: drive, a fast SSD.

Because I want to reclaim some space on my C: drive, I would like to move them to my D: drive.

I have found this MSDN article, but that seems to be the procedure to move only one database.

Is there an automatic way or script to move all my databases at once?

1 Answer 1

0

You can cheat and link the directory across drives after you move it. Then no changes need to be done within the database configuration.

mklink /d MovedDirectory D:\MovedToDirectory
1
  • Will this also give the same NTFS rights to D:\MovedToDirectory as there were originally on C:\MovedDirectory?
    – BioGeek
    Jul 17, 2013 at 10:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .