I am using script to automate merge replication.but how can i check whether snapshot agent job has successfully applied snapshot to subscriber db by using script.(Now i am right clicking on publisher in ssms and checking View Snapshot Agent Status).Please reply me soon.
Thank you