Backup And Move All SQL Databases To New Partition

I need to backup my sql 2005 databases to another partition and also move the databases onto my d drive
as i have run out of space on the c drive
can anyone help
LVL 1
dougdogAsked:
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.

maradamCommented:
You don't need to backup and restore database to move them to another partition. You can detach them with sp_detach_db procedure, move files to another partition and then attach with sp_attach_db. You need however some downtime in this method. During detach and move databases will be unavailable to users.
0

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
Faiga DiegelSr Database EngineerCommented:
Or create a secondary filegorup, point these filegroup to your D drive and use that filegroup as default . In that way all objects created will be stored in this filegroup (physically on your D drive). For current objects that is stored on your primary filegroup (physically on your C drive), you could drop clustered indexes and create it on the secondary filegroup. This is a resource intensive work, schedule it on a not so busy time. Start with the not so important table or those somewhat static tables. Leave the most important table as is. In this way when you create clustered index to the secondary file (phylically your D drive), the base table data is moved to that secondary files :))  


0
dougdogAuthor Commented:
thanx guys
0
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
Microsoft SQL Server 2005

From novice to tech pro — start learning today.