How to use SQL Server manager to move the Database & Logs to different drive ?

I had this question after viewing Migrating C:\ only in a VM to another VMDK disk ?.

Hi People,

based on the suggestion shared by one of the experts as above thread, how can I use the SQL Server manager to safely migrate the SQL Database and logs from the below Disk 0:
Disk partition layout

Into another newly added drive without causing downtime or database issue on the application setting side ?
[Hopefully I do not have to modify anything from the application perspactive]

LVL 12
Senior IT System EngineerSenior Systems EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
>>without causing downtime

That is not possible from what I know.

The easiest way would be to do a detach of your database (database would then be not available), move your files to your new drive and reattach your database.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
andyalderHaemorrhoids victimCommented:
"without causing downtime" is not possible, you can use ALTER DATABASE or the server manager to define the new database location but then you have to stop the particular database, move the files and then start it again.
andyalderHaemorrhoids victimCommented:
Actually it is probably possible to migrate DISK1 or DISK2 with Storage vMotion, because Windows and SQL wouldn't know it was happening and the drive letters wouldn't change.
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

Senior IT System EngineerSenior Systems EngineerAuthor Commented:

Do you mean clone the VM and then specifying the custom VMDK drive to be cloned ?
and then re-attached the cloned disk to the existing VM ?
andyalderHaemorrhoids victimCommented:
Not cloning but migrating using svMotion if you have the license for it. svMotion via the GUI moves the whole thing but with the CLI you can move individual disks,
Senior IT System EngineerSenior Systems EngineerAuthor Commented:
Hi Andy,
Yes I do have Enterprise Plus license.

Am I able to svMotion just one VMDK and then resize it on the fly to another VMDK disk ?
Senior IT System EngineerSenior Systems EngineerAuthor Commented:
Thanks all !
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.