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
Explain what is the purpose of sql profiler in sql server?
How to create function without parameter in sql server?
What is table join?
How to run sql server 2005 books online on your local system?
What are the advantages of paper records?
Why we need to use secondry database file? though, we can do same work using primary database file also.
Show Practically Sql Server Views are updatable?
How to replace given values with null using nullif()?
What are the advantages of policy management?
What are the various editions of sql server 2017 that are available in the market?
Recommend an approach to ensuring that all changes in the remote databases synchronize with the SQL Azure database?
What are .mdf files?
What is isolation levels?
How many columns can we include on clustered index ?
What are indexes in sql?