Unresolved References to Same Database Project

前端 未结 2 1578
青春惊慌失措
青春惊慌失措 2021-02-13 01:55

I\'ve created a SQL Server database project in Visual Studio 2013 and imported a DACPAC taken from a production database. When I tried to build the project I get hundreds of SQ

2条回答
  •  逝去的感伤
    2021-02-13 02:45

    In Visual Studio:

    1) Open SQL Object Explorer, link your database server, right click on unresolved reference database and "Extract Data tier application"

    2) Insert a file path. Normally I use \Documents\SQL Server Management Studio\DAC Packages\ and click OK

    3) Waiting for extraction

    4) Right click on your project References and Add Database Reference

    5) Then replace references in your functions, SP, .. with [$(YourDB)] prefix

提交回复
热议问题