I'm trying to figure out what you mean by 'enable', but...
There are two COM objects available to you to control replication (initialize and synchronize). Read about the SQLMerge (Merge Replication) object and the SQLDist (Snapshot and Transactional Replication) Object in books online.
If you are simply trying to enable a server for replication, you could script this in a stored procedure and call it from VB. You should also be able to use the SQLDMO object to do this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.