Errorlog

  • Hi,

    Is there any query to find out the path of the sql server error log file location like how we are getting the database files by using query (select * from sys.database_files ) ?

    Thanks in Advance.

  • master..xp_readerrorlog will list out the error logs.

  • BEGIN

    DECLARE @path NVARCHAR(4000)

    EXEC master.dbo.xp_instance_regread

    N'HKEY_LOCAL_MACHINE',

    N'Software\Microsoft\MSSQLServer\MSSQLServer\Parameters',N'SQLArg1',

    @path OUTPUT,

    'no_output'

    print @path

    END;

  • moorthy.jy (5/5/2010)


    master..xp_readerrorlog will list out the error logs.

    but wont show the error log location/path .

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

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

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