Moving TEMPDB logs only

  • We're dedicating new disk space for logs and I need to move tempdb's log only. I've searched this forum and have found entries where both the mdf and ldf are being moved at the same time, but is it possible to move only tempdb's log file to a different drive?

    If so, can I do it with

    ALTER DATABASE tempdb MODIFY FILE (NAME=templog, FILENAME = 'drive:\templog.ldf') ?

    Thanks for your consideration

  • Hi,

    Wht ever the command you have mentioned will work.

    once again from master..

    ===================

    Alter database tempdb modify file (name = templog

    , filename = 'PATH_TO_NEW_LOCATION_OF_TEMPDB_DATAFILE\templog.ldf')

    go

  • Hi,

    Like Eshwaran said, check this link for more info http://support.microsoft.com/kb/224071

    Regards,

    Ahmed

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply