Groups | Blog | Home
all groups > sql server replication > august 2006 >

sql server replication : Alter column datatype in trans replication that has index...


Adam Patrick Cassidy
8/25/2006 1:24:48 PM
I've found that I'm doing this incorrectly and need some assistance.

What would be the proper way to adjust the length of a column's datatype
when I have transactional replication setup?


I've attempted to drop the column using sp_repldropcolumn and got the
message that the column has an index. So I simply opened the MANAGE INDEXES
on the table and dropped the index, used the sp_repldropcolumn, used
sp_repladdcolumn with the new datatype size and when I was all finished I
checked my replication and found that it reported an error on the
distribution agent because it indicated that the index that I had dropped
was needed for the column that I altered.

There has to be a proper way to do this, can someone provide me the steps?

Thanks!

APC

Paul Ibison
8/29/2006 12:00:00 AM
Adam,
please can you post up the full text of the error message, and the full
original table schema if you still have it somewhere.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com

Adam Patrick Cassidy
8/29/2006 10:35:55 AM
It could have been any column datatype that I was looking for an answer for.
The error was exactly that, an error occurred when deleting "indexX" because
that index relied on "columnX".

Neither here nor there, I solved my own problem with the help of the sp for
executing scripts on subscribers.

Adam


[quoted text, click to view]

AddThis Social Bookmark Button