Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot alter column 'column_name' because it is 'REPLICATED'

Tags:

alter-table

I am trying alter a Column however replication is not enabled or cdc. I am getting error Cannot alter column 'column_name' because it is 'REPLICATED'. I ran below TSQL

SELECT * FROM SYS.tables WHERE NAME=N'ac_payment_info';

is_replicated=0

enter image description here

I would appreciate any help or workaround.

like image 898
James Youkhanis Avatar asked Aug 31 '26 14:08

James Youkhanis


1 Answers

Im my case I had to disable the CDC on that table (sys.sp_cdc_disable_table), alter the column, and enable de CDC again (sys.sp_cdc_enable_table). It worked. I do not use replication.

like image 145
ASPaiva Avatar answered Sep 09 '26 16:09

ASPaiva



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!