Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Find number of logs archived

$
0
0

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



Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>