Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Cannot propagate the constraint changes to subscri

Author  Topic 

viswanathan
Starting Member

2 Posts

Posted - 2005-05-12 : 01:13:33
Hi there,

I have been using merge replication with pull subscription. I managed to add a constraint using the following steps and schema changes were taken place at the publisher, but when i do syncronization at the subscriber, it does not sync,instead it gives en error. I have even re-initialized the subscription, still it does not work. Is anyone out there to give me a solution.
Your help would really be appreciated. Thanks in advance.

steps, that i have used to create a constraint on the published table is given below.

a. Open Notepad

b. Paste the following Transact – SQL Command

alter table <PublishedTableName>
add constraint <ConstraintName>
go

c.Save the files as addConstraint.sql

d. use <PublicationDatabase>
go
sp_addscriptexec @publication = <PublicationDatabase>,
@scriptfile = <path of addConstraint.sql>
go


Error that i have encountered at the subscriber when i syncronize is given below

The schema script '0\\machinename\repldata\20050506184002630\addConstraint.sql could not propagate





Cheers
Visu













C. Viswanathan
Kaveri infosys
shivani - Block 1, II floor
40 ECR, Road Thiuvanmiyur, Chennai- 600 041.
   

- Advertisement -