all groups > sql server replication > july 2004 >
You're in the

sql server replication

group:

sp_repladdcolumn Question


sp_repladdcolumn Question niv
7/7/2004 12:50:51 PM
sql server replication:
Hello,

I am trying to add a new column to a table that is being
replicated. I want the column to be varchar 5 and have a
default of YES.
The script below seems to error out.

sp_repladdcolumn 'DOOR','ThisIsDoor',varchar(5)
DEFAULT='YES','MergeAllDoors'


Thanks,

Re: sp_repladdcolumn Question Paul Ibison
7/7/2004 10:37:36 PM
Niv,

this should be the correct script:

sp_repladdcolumn @source_object = 'DOOR'
, @column = 'ThisIsDoor'
, @typetext = "varchar(5) NOT NULL DEFAULT 'Yes'"
, @publication_to_add = 'MergeAllDoors'

HTH,
Paul Ibison

AddThis Social Bookmark Button