October 4, 2006 at 10:08 pm
I have replication set up on the system.
i cant change the column names,or change datatype.
wanted to change the name of the column in publisher DB
gives the error:
Cannot rename the table because it is published for replication.
any suggestions wht to do
tx
October 5, 2006 at 3:08 am
You should really read BOL on requirements and restrictions when using replication.
Essentially to alter a replicated table remove it from the publication, make changes , and add it back.
[font="Comic Sans MS"]The GrumpyOldDBA[/font]
www.grumpyolddba.co.uk
http://sqlblogcasts.com/blogs/grumpyolddba/
October 5, 2006 at 8:07 am
>> Essentially to alter a replicated table remove it from the publication, make changes , and add it back. <<
Not true anymore, in 2005 you can use DDL and replication takes care of the rest
Cheers,
* Noel
October 5, 2006 at 9:32 am
agreed - with peer to peer - assumed this was not the case otherwise the Q would not have been asked ^^
[font="Comic Sans MS"]The GrumpyOldDBA[/font]
www.grumpyolddba.co.uk
http://sqlblogcasts.com/blogs/grumpyolddba/
October 5, 2006 at 10:51 am
I have done it with Transactional, Not with Peer-to-Peer.
By the way I have changed the datatype, not the name!!
Cheers,
* Noel
October 5, 2006 at 12:34 pm
which DD shld be used?
tx for the reply
October 5, 2006 at 3:16 pm
Alter table
Alter column new_datatype
just make sure your types are implicitly convertible.
Cheers,
* Noel
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply