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
 General SQL Server Forums
 New to SQL Server Programming
 Seperation of Log file and Database file

Author  Topic 

pvccaz
Yak Posting Veteran

87 Posts

Posted - 2007-05-07 : 14:36:49
Hi,

I have the database file and log file for all the databases in SQL server in the same drive. I want to seperate both the log and data file into different drives. What is the best way to do it? Is there any script that could be run.

Please help.

Thanks !

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-05-07 : 14:38:49
Just detach the database, move your LDF file to wherever you want it, then attach the database but specify the new location for the LDF.

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

pvccaz
Yak Posting Veteran

87 Posts

Posted - 2007-05-07 : 18:43:07
Hi Tara,

I tried it out and it works !!.. Thanks so much.
Go to Top of Page
   

- Advertisement -