Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Replication / August 2006

Tip: Looking for answers? Try searching our database.

Alter column datatype in trans replication that has index...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam Patrick Cassidy - 25 Aug 2006 18:24 GMT
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 - 29 Aug 2006 09:08 GMT
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 - 29 Aug 2006 15:35 GMT
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

> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.