Re: Add new column to a replicated table..

From: SPG (steve.nospoo.goodsell_at_nopooblueyonder.co.nopoo.uk)
Date: 02/16/05


Date: Wed, 16 Feb 2005 14:03:15 GMT

Thanks for that..
I sort of half guessed that when the sp failed, but the docs are not too
clear on this..

Steve
"Wayne Snyder" <wayne.nospam.snyder@mariner-usa.com> wrote in message
news:%23oEXG8CFFHA.2568@TK2MSFTNGP10.phx.gbl...
> You use sp_replAddColumn INSTEAD of using alter table add column.... the
> Sp adds the column to the table, and fixes replication... since you
> manually added the column the sp fails..... drop the column and use the SP
> only.
>
> --
> Wayne Snyder, MCDBA, SQL Server MVP
> Mariner, Charlotte, NC
> www.mariner-usa.com
> (Please respond only to the newsgroups.)
>
> I support the Professional Association of SQL Server (PASS) and it's
> community of SQL Server professionals.
> www.sqlpass.org
>
> "SPG" <steve.nospoo.goodsell@nopooblueyonder.co.nopoo.uk> wrote in message
> news:r9IQd.16027$8B3.14345@text.news.blueyonder.co.uk...
>> Hi,
>>
>> I need to add a column to a table that is being replicated.
>>
>> Can I just do the ALTER TABLE ADD xxxx bit then make a call out to
>> sp_replAddColumn?
>>
>> When I do so, the sp fails saying the column exists. The manual says that
>> it adds the column to the publications, but does not suggest it does the
>> physical add tot the table..
>>
>> Thanks in advance,
>>
>> SPG
>>
>
>



Relevant Pages

  • Re: Time range matching
    ... > datetime with a time range that spans multiple days... ... > Wayne Snyder, MCDBA, SQL Server MVP ... > community of SQL Server professionals. ...
    (microsoft.public.sqlserver.server)
  • Re: How to know the table size in sql database and how to know whi
    ... each table during the iteration that happens within the stored procedure. ... > Wayne Snyder, MCDBA, SQL Server MVP ... > community of SQL Server professionals. ...
    (microsoft.public.sqlserver.server)
  • Re: How to learn .Net
    ... > Wayne Snyder, MCDBA, SQL Server MVP ... > Mariner, Charlotte, NC ... >> I read everywhere at the moment that SQL Server professionals need to ...
    (microsoft.public.sqlserver.server)
  • Re: VARCHAR to INT
    ... ISNumeric function allows float, decimal numbers also... ... > Wayne Snyder, MCDBA, SQL Server MVP ... > community of SQL Server professionals. ...
    (microsoft.public.sqlserver.programming)
  • Re: consolidating two data files into one.
    ... > then alter database prod drop file file2 ... > Wayne Snyder, MCDBA, SQL Server MVP ... > community of SQL Server professionals. ...
    (microsoft.public.sqlserver.server)

Loading