patternsqlMinor
SQL Server : Transactional Replication Computed Column
Viewed 0 times
computedtransactionalsqlcolumnreplicationserver
Problem
I am a subscriber to a transactional replication subscription. I have no control over the publisher.
I have read the following article about schema changes to the publication database:
Make Schema Changes on Publication Databases
However, I am trying to change the schema on the subscription end (if possible). I am wondering if transactional replication supports the addition of persistent computed columns to the subscriber tables.
I would much prefer this solution versus adding a new view for every table that requires a computed value.
I have read the following article about schema changes to the publication database:
Make Schema Changes on Publication Databases
However, I am trying to change the schema on the subscription end (if possible). I am wondering if transactional replication supports the addition of persistent computed columns to the subscriber tables.
I would much prefer this solution versus adding a new view for every table that requires a computed value.
Solution
You can do this, but keep in mind that your new column will be wiped out if the subscription is ever reinitialized. ie. The DBA at the publisher alters the publication to add a table, corruption, maintenance, etc. and the snapshot needs to be reapplied, any changes you have made to the replicated schema are dropped and recreated from the publication. So any changes you have made will be dropped as well.
Context
StackExchange Database Administrators Q#22779, answer score: 8
Revisions (0)
No revisions yet.