VS 2012 Database Project “unresolved reference to object” Error

后端 未结 9 1338
再見小時候
再見小時候 2020-12-16 09:02

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

9条回答
  •  时光取名叫无心
    2020-12-16 09:48

    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:

    SomeDatabaseProject

    For example:

        
          SomeDatabaseProject
          {some-project-guid}
          True
          SomeDatabaseProject
        
    

    Then you can use clean, three-part naming references like SomeDatabaseProject.SomeSchema.SomeTable.

提交回复
热议问题