Database Reference in SSDT project with UDFs and Views
Running into a weird issue. Assuming there are two database projects in one empty solution, Bart and Homer. Bart has been added as a Database Reference to Homer. Bart project defines a function: CREATE FUNCTION [dbo].[Message]() RETURNS NVARCHAR(255) AS BEGIN RETURN 'I am a value returned from another database' END Then the Homer project defines a table: CREATE TABLE [dbo].[Messages] ( [Id] INT NOT NULL PRIMARY KEY ) and a view: CREATE VIEW [dbo].[MessagesV] AS SELECT Id, Bart.dbo.Message() AS [Message] FROM dbo.Messages When trying to build, I am getting these errors: Error 2 SQL71501: