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 2000 Forums
 SQL Server Administration (2000)
 Changing Location of data-files

Author  Topic 

wbb1975
Starting Member

23 Posts

Posted - 2004-05-25 : 05:11:05
Hi,

how can I change the location of the data-files in SQL-Server 2000 (we would like to move all data-files and the default location for all data-files on a separate disc ...).

Thanks in advance for your answers!

Greetings
Stefan

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2004-05-25 : 05:32:02
You can do a backup and restore with move or you can use sp_detach_db and then sp_attach_db...
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2004-05-25 : 06:04:24
You might want to chagne the DEFAULT location for New databases too (I think you can do this in Enterprise Manager - Right click the Server and then choose PROPERTIES)

Kristen
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2004-07-06 : 18:52:33
It looks like changing the default locations of files can only be done with a registry edit.

See this link from BOL for details:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/instsql/in_afterinstall_9306.asp



-ec
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-07-06 : 19:55:58
Oh, look. It's the magical document: http://support.microsoft.com/default.aspx?scid=kb;en-us;224071

Just follow this document. It will guide you right along.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -