December 28, 2002 at 2:46 pm
Hey all this is related to my topic on replication system tables. Through working on this I have come to need to add a table to a current merge publication. So far this si what I have come up with, I think I am way off here..need help.
dim oSrv, strServer
strServer = "server"
set oSrv = CreateObject("SQLDMO.SQLServer")
oSrv.Connect strServer, "sa", "sapassword"
'add to replications
set rPub = oSrv.Replication.ReplicationDatabases("DTS_Store").MergePublications("DTS_Store")
rPub.BeginAlter()
set mArt = rPub.MergeArticles
mArt.Add("test")
rPub.DoAlter()
oSrv.Disconnect
oSrv.Close
December 31, 2002 at 8:00 am
This was removed by the editor as SPAM
December 31, 2002 at 8:17 am
Not quite a duplicate thread, I posted some basic how to code in the related thread here:
Andy
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply