Applies to ApexSQL Log
Summary This article explains how to use ApexSQL Log even when installation of ApexSQL Log and/or server-side components is not possible/allowed on the server machine due to performance, security, or any other reasons. Description ApexSQL Log is a tool that can audit transaction log files on both local and remote servers. While auditing on local servers doesn’t require ApexSQL Log server-side components, auditing databases on a remote server requires that the user installs them on the server that hosts SQL Servers that will be audited. Prior to 2016 version, ApexSQL Log server-side components installed 2 stored procedures on directly on the SQL Server, but this is no longer the case. The only remaining server-side component is a service installed on the system that hosts SQL Server which enables remote reading of online transaction log file – nothing is installed on the SQL Server itself. Nevertheless, due to various reasons, policies, etc, installation of ApexSQL Log server-side components is not always an acceptable solution. Let’s assume that there is a SQL server that we need to audit, but we cannot install ApexSQL Log on it locally. In addition, the ApexSQL Log server-side components required for remote auditing also cannot be installed on the system. Using a “bridge” server As an alternative plan, we can leverage another, different server as a “bridge”, to audit our target server. For this to work, there are several conditions that need to be fulfilled. First of all, the database in question has to be in full recovery mode, and a full transaction log chain must be maintained. Also, a full backup and transaction log backup(s) must be created. Why are transaction log backups essential? The answer to this question lies in the core of ApexSQL Log which is not a database reader but transaction log reader. Live database and database backups are snapshots of the current database state and because of this they are important part of the process. But, they do not contain information regarding the change history – the transaction log stores this data, and is hence irreplaceable in the process. Here are the steps that need to be executed:In the ‘Select SQL logs to analyze’ step of the wizard uncheck online transaction log and check (add) original transaction log backup(s) you’ve copied from the Target server