I know how to change the number of SQL Server Logs archived but is there a table that stores the number of logs archived? I need to read from this table to perform some conditional statements.
Ex. SELECT @archive_log_number = logs_archived from [schema.table_name]
if (@archive_log_number = 6)
begin
...
end
else
begin...
end