Allways on falls behind

When using Allways On with asyncron secondary server, the secondary server sometimes fall behind if lots of changes on primary server. But how far behind? I am using this command to get a picture of the status. The command is executed on primary server. select recovery_lsn,truncation_lsn,last_hardened_lsn,last_received_lsn,last_redone_lsn,last_redone_timefrom sys.dm_hadr_database_replica_states

Running sessions

Often when a server seems to work slow or if I want to see what my store procedure is doing now, I use the “Running sessions” script. It helps me to get a fast overview of what are the SQL Server doing right now. Also blocking sessions are showed and if I uncomment the two… Læs mere Running sessions