Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Changing the data files for MSSQL

Author  Topic 

missMac
Posting Yak Master

124 Posts

Posted - 2009-08-17 : 04:00:52
Hello,
when we installed our db, the files were set to c drive which apparently hasnt got much space.

1. How do we change it to d:\ drive
2. or if we were to backup and restore, how do we restore it to d:\ drive, bearing in mind that d drive hasnt got

c:\Program Files\Microsoft SQL Server\MSSQL10.mydatabase\MSSQL\DATA\db.mdf

or do i create the folder ?

thanks
mm


webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-08-17 : 05:34:33
Create the wanted folder on drive d: and restore to it.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-08-17 : 05:55:41
create the required path as webfred as suggested.

And when you restore your database, specify the data and log path in the restore command. If you are using SSMS, you can also do that via the dialog box.


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -