Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 verbose logging for sql agent

Author  Topic 

frank.svs
Constraint Violating Yak Guru

368 Posts

Posted - 2011-07-27 : 22:05:46
Hi All,

How to setup verbose logging for sql agent using T-sql.

Am able to do it from registry and restarting the sql agent to get the registry changes to get into affect.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.MYSQL\SQLServerAgent
ErrorLoggingLevel =7

Questions
1. Is there any direct query to set the verbose logging for sql agent rather making modifications to registry?
2. Is there any T-sql using which we can get to know what is the current logging level set for SQL Agent?
3. Once after making changes in registry do i need to restart the sql agent to changes get into affect?

Thanks in advance.
   

- Advertisement -