all groups > sql server replication > september 2005 >
You're in the

sql server replication

group:

Transactional replication - table definition


Transactional replication - table definition Roger Nygård
9/6/2005 12:00:00 AM
sql server replication:
ms-SQL2000 sp4

I want to replicate a database to a destination db using transaction
replication (one way)
This destination db (subscriber) has alredy the schema which is the same as
the source (publisher) schema
BUT a column is added on each table. (and I don't want to add this column at
the publisher)
By default this is not working in ms-replication. I got an insert failure
(Insert Error: Column name or number of supplied values does not match table
definition.)


Is it possible to mssql replication to work in this case?

Roger Nygård

Re: Transactional replication - table definition Paul Ibison
9/6/2005 12:00:00 AM
Roger,
I'm not sure why you wouldn't want to add the column at the publisher using
sp_repladdcolumn. Can you give us some more info? If this column is to have
its values replicated, the publication must be made aware of it so as to
update the stored procedure parameter list.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Re: Transactional replication - table definition Roger Nygård
9/6/2005 12:00:00 AM
The publication is not aware of the value of tis column
The column is use only at the subsriber site.


[quoted text, click to view]

Re: Transactional replication - table definition Roger Nygård
9/6/2005 12:00:00 AM
It seems like I solve the problem
I just checked the checkbox "use column names in commands that are not
replaced by stored procedures"
in the default table article propeties dialog box

RN

[quoted text, click to view]

Re: Transactional replication - table definition Hilary Cotter
9/6/2005 10:06:15 AM
you will have to manually edit the update and insert procs on the subscriber
to account for these new columns.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
[quoted text, click to view]

AddThis Social Bookmark Button