How to get the current DBs log file folder

  • Using SQL 2k

    I want to write to a text file in the current DBs log file folder. This is to audit the processing of a scheduled DTS package.

    Is there any method of finding out the correct folder name.

  • You can find it in masters table sysaltfiles.

    Use master

    SELECT * FROM dbo.sysaltfiles


    Regards,

    Anders Dæmroen
    epsilon.no

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

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