I have a DB that includes some User Defined Types. As I understand, Merge Replication will automatically include the UD types that are been used. One of those types is a table variable witch is used in a function. And on publisher site works fine but on the Subscriber site it fails to synchronize. Why is this happening?
I tried to replicate just the one function which uses the type, and succeed. After that the replication worked just fine.
When I tried to make the same configuration to another system it failed at the begin as the original try on the previous system, but now even if I try to replicate the one procedure, I still get the same Error.
The error is the following:
The schema script 'some name.sch' could not propagated to the subscriber.
And when I trace the error:
Cannot find data type dbo.someName