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
 Moving a log file location

Author  Topic 

jshurak
Starting Member

44 Posts

Posted - 2008-05-14 : 15:49:45
I've got some users that created a database with the log file on a drive that doesn't have a lot of space. I'd like to truncate the log and move it to a different drive. I can truncate it, but is moving it as easy as changing the files properties through SSMS?

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-05-14 : 15:59:09
Detach the database, move the log file, attach the database and specify the new location.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Database maintenance routines:
http://weblogs.sqlteam.com/tarad/archive/2004/07/02/1705.aspx
Go to Top of Page

jshurak
Starting Member

44 Posts

Posted - 2008-05-14 : 16:12:20
thanks!
Go to Top of Page
   

- Advertisement -