The publisher column is not returned.The snapshot/logread/qreader agentname columns are nullable, hence not a sysname.Here's the correct result set definition:DECLARE @replmonitorhelppublication TABLE (publisher_db SYSNAME,publication SYSNAME,publication_id int,publication_type INT,STATUS INT,warning INT,worst_latency INT,best_latency INT,average_latency INT,last_distsync DATETIME,retention INT,latencythreshold INT,expirationthreshold INT,agentnotrunningthreshold INT,subscriptioncount INT,runnin
↧