Database Recovery

How to Batch Set the Error Log Location for Multiple SQL Server Agents

If you are given a task of changing the SQL Server agent's Error log location for a single SQL Server instance, you could easily do that by using SQL Server management studio. However, if the same task must be completed for almost 1000 SQL instances, you might take a month to complete it. In this article, we will learn how to update SQL Server agent's Error log path through TSQL. For a single instance To set a new location for the SQL Server agent’s error log, using SQL server management...

Read more »

How to Track and Monitor All Database Owners in Your SQL Server

Having a check on database owners is very important. You might hit a service broker problem and then realize that the root cause was a windows login of an ex-employee and it was set as the database owner. If you proactively track database owners, you will never meet such issues in your work environment. Not DBO In this article, we are dealing with database owner and not do or db_owner. DBO is a user, it’s a database concept and db_owner is a fixed database role. Log it From your central...

Read more »

How to Centralize the Monitoring of SQL Server Error Log

SQL Server error log is the first place we search to identify and troubleshoot SQL Server issues. Whenever you call Microsoft SQL Server for any SQL Server issues you would be asked to share your SQL Server's Error log. In this article, we would learn how to centralize the monitoring of all SQL Server's Error log The location Before learning how to automate the Error Log monitoring, it is necessary to know the location of the log file.  The first and easy approach is to identify the file...

Read more »