How to change location of errorlog in SQL?

Answer Posted / anwar hayat

To change the location of your log backup files, you have
to update whatever process is generating them. If it is a
Maintenance Plan then you can adjust it inside the
Maintenance Plan properties. To change the location of the
SQL Agent log, expand the SQL Server Agent Node in SSMS,
right click the ErrorLogs folder and click Configure, and
change the path there. Or you can do it with TSQL:
Code Snippet
USE [msdb]
GO
EXEC msdb.dbo.sp_set_sqlagent_properties
@errorlog_file=N'D:\Srvapps\Microsoft SQL Server\MSSQL.1
\MSSQL\LOG\SQLAGENT.OUT'

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is SQL Azure Federations?

108


Does sql server 2000 full-text search support clustering?

682


Which feature in sql server 2008 has surprised you? You can name just one. : sql server database administration

715


Do you know what are the properties of the relational tables?

815


What does man by sql wildcard characters in sql server?

735


How to find tables without indexes?

803


What are key, name and value columns of an attribute? : sql server analysis services, ssas

780


What is use of dbcc commands?

808


How to copy data from one table to another table?

755


What is a cube? : sql server analysis services, ssas

732


You have a table ‘test’ which is a copy of northwind employee table you have written a trigger to update the field ‘hiredate’ with the current date

830


Please illustrate physical database architecture? : SQL Server Architecture

758


What does it mean to be in union?

689


Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

753


What is 2nf example?

740