I have two database. One database accesses tables in the other, via SYNONYMs. I have imported both databases into two separate projects in my solution.
But when I build, I get an error:
Error SQL71501: Computed Column: [dbo].[AccountBase].[AccountCategoryCode] has an unresolved reference to object [CRM].[AccountBase].[AccountCategoryCode].
[CRM].[AccountBase]
is a SYNONYM pointing to the other database.
So, I created a Database Reference, and modified the SYNONYM to point at the other project, and got a reference called $(CRM). I then modified the SYNONYM to use that reference.
But I am still getting the same error. Is it possible to achieve what I am trying to do? That is, import the two projects, and have them compile in the database project, using the database reference to point to the database?