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
What is the difference between for auto and for nested?
Can a rule be bound to any column of any data type?
What is the difference between an index and a unique index?
How do you check sql server is up and running?
explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration
Tell me what is difference between view and materialized view?
What is difference between rownum and row_number?
Does sql server 2000 clustering support load balancing?
What is a matrix in ssrs?
How to download microsoft sql server 2005 express edition?
What are the steps to insert a table?
Tell me what is sql profiler?
What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?
What are the properties of the transaction?
What is ems sql management studio? : sql server management studio