Results 1 to 3 of 3

Thread: tempdb

  1. #1
    Join Date
    Aug 2003
    Location
    London
    Posts
    110

    tempdb

    Hi,

    the problem I have it's not that complicated, and I need a hint

    well I want to move the tempdb database files ( mdf,ldf ) in to another folder and another drive. well I cann't detach and attach again as it is system db while system is working, same as masterand msdb.
    now if I stop the service by stoping the SQLserver service then after moving the files physically how I'm going o go and change the file path in the tempdb property.

    many thanks

    D

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You can use alter database to modify the sql server catalog and the changes will take effect after you restart sql service.

    Alter database tempdb modify file (name = tempdev, filename = 'E:\Sqldata\tempdb.mdf')
    go
    Alter database tempdb modify file (name = templog, filename = 'E:\Sqldata\templog.ldf')
    go

    This is useful.

    http://support.microsoft.com/default...NoWebContent=1

  3. #3
    Join Date
    Aug 2003
    Location
    London
    Posts
    110
    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •