I am trying to start synchronization for reeplication through sql dmo, but I have no idea on how to do this. Can any one give me some insight on how to do this. If you can provide some sample code that will be very helpful.
Lets try the easy way first! Instead of working directly with replication an easy way to do this is to just run the associated job(s) (logreader and distribution agent). Log readers typically run continuously so once started there is rarely any need to change.