• ravi@sql (12/3/2012)


    ok cant i point my log file path any other drive ? if yes how can i do that ? pls share the query ?

    Thanks

    Ravi@sql

    If you want to move the existing t-log file to different location then, follow the below steps:

    1. Run ALTER DATABASE command and change location of ldf file

    2. Take database offline

    3. Move the physical file from old location to new location.

    3. Bring database online

    You can also try to add second log file to your database

    USE [master]

    GO

    ALTER DATABASE [DB_NAME] ADD LOG FILE ( NAME = N'second_log_file', FILENAME = N'D:\LOG_FILES\second_log_file.ldf' , SIZE = 1024KB , FILEGROWTH = 10%)

    GO