Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Add column with user-defined data types in the replicated table

$
0
0

Hello,

I'm using transactional replication in SQL Server 2012. Is it possible to replicate user-defined data types by adding a new column in the replicated table?

For example:

There are custom data types Datatype_1 (varchar (10)).

After adding a column with:

alter table Table_name
add test_coll Datatype_1 null
go

As a result, we have:

Publisher DB

column_name           Type
test_coll                    Datatype_1

Subscriber DB

column_name           Type
test_coll                    varchar

Option "Convert data types" in article properties is set to "false".


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>