I created SQL Server Database Project in VS 2012 & imported our database. When I build the project, I get a lot of \"unresolved reference to object\" Errors. These error
To reference another sqlproj's schema and use three-part naming, modify your .sqlproj file to add a DatabaseVariableLiteralValue
element on the referenced project.
In within the element like
, add the following:
For example:
SomeDatabaseProject
{some-project-guid}
True
SomeDatabaseProject
Then you can use clean, three-part naming references like SomeDatabaseProject.SomeSchema.SomeTable
.