May 27, 2010 at 7:35 am
Is there a way to move the SQLAGENT.OUT without restarting?
May 27, 2010 at 8:35 am
this command moves the location of the file
USE msdb
GO
EXEC msdb.dbo.sp_set_sqlagent_properties @errorlog_file=N''new path\SQLAGENT.OUT'
GO
Sqlagent will need restarting to write to this new location though. what's the problem with restarting the agent?
---------------------------------------------------------------------
May 27, 2010 at 8:55 am
I had to move the system databases and log files to free up a directory last night. The error logs and sqlagent.out were on the same directory as the databases, but I thought changing the dump file location for the SQLSERVER service, would change the location of the error log and SQLAGENT.OUT, but it didn't.
So I was trying to find a way to move it without another downtime.
May 27, 2010 at 10:12 am
sorry, no can do, but a restart of just SQLAgent should not affect the app.
move the errorlog via the startup parameters in config manager, that will require a SQL restart
---------------------------------------------------------------------
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy