Transactional replication and add coulmn

  • Hello Friends, I am really new to replication. I have a table part of replication. What command I should use to add another column in this table and also make it part of replication.

    Please suggest.

  • Take a look at sp_repladdcolumn in Books Online.

    * Warning: Books Online gives the wrong parameters for this sp - it misses one in the middle.

    You can view the parameter list, with types, using the following query:

    SELECT sc.Name AS [Parameter], st.Name AS [Type]

    FROM master.dbo.syscolumns sc (NOLOCK)

    INNER JOIN master.dbo.systypes st (NOLOCK) ON sc.xtype=st.xtype

    WHERE sc.id = OBJECT_ID('master.dbo.sp_repladdcolumn')

    ORDER BY sc.colid

    Eddie Wuerch
    MCM: SQL

  • Thanks, it works.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply