久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

SQL Server:當引用另一個 SSDT 項目時,DacPac 會刪除

SQL Server : DacPac drops everything when another SSDT project is referenced(SQL Server:當引用另一個 SSDT 項目時,DacPac 會刪除所有內容)
本文介紹了SQL Server:當引用另一個 SSDT 項目時,DacPac 會刪除所有內容的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我們有以下 SSDT 項目結構:

we have the following SSDT project structure:

DBCore 項目:包括所有非 sql server 版本獨有的對象.

DBCore project: includes all objects that are not sql server edition exclusive.

DBStandardEdition 項目:包括所有標準版特定對象.

DBStandardEdition project: includes all standard edition specific objects.

DBStandardedition 項目引用具有相同數據庫"的 DBCore 項目選項.

The DBStandardedition project references the DBCore project with the "same database" option.

當我直接通過 Visual Studio 將 DBStandardEdition 項目發布到我的演示服務器時,一切正常.所有標準版相關對象均已正確創建.

When I publish the DBStandardEdition project to my demo server via visual studio directly, everything works. All the standard edition related objects are created correctly.

當我使用 Visual Studio 中的架構比較工具將演示服務器上的數據庫與我的 dacpac 文件進行比較時,該工具想要刪除我在 DBStandardEdition 項目中定義的所有對象.我們還有一個使用 DacServices - 類 (DacServices.Deploy) 發布 dacpac 文件的程序.該程序實際上刪除了我的 DBStandardEdition.dacpac 文件中定義的所有內容.

When I compare the database on the demo server to my dacpac file with the schema comparison tool in visual studio, the tool wants to drop all objects I have defined within DBStandardEdition project. We also have a program that publishes the dacpac files with the DacServices - Class (DacServices.Deploy). This program actually drops everything defined in my DBStandardEdition.dacpac file.

我在這里做錯了什么還是一個錯誤?

Am I doing something wrong here or is it a bug?

更新我在我的項目設置中發現了一個問題.我已經設置了構建輸出文件名"將所有數據庫項目設置為相同的值.更改此設置后,Visual Studio 會在我的 DBStandardEdition\Bin\Release 文件夾中生成兩個 DacPac - 文件.DBCore.dacpac 和 DBStandardEdition.dacpac.當我現在使用 Visual Studio 的比較工具將 DBStandardEdition.dacpac 與我的數據庫進行比較(并啟用包括復合對象(僅限數據庫目標)"- 選項)時,一切看起來都不錯.新添加到 DBCore 項目的對象以添加"列出,我的 DBStandardEdition 項目中的所有對象仍然存在.當我激活部署選項包括復合對象..."時,一切部署正常.

Update I figured out a problem in my project settings. I have set the "Build output file name" for all databaseprojects to the same value. After I changed this, Visual Studio generates two DacPac - Files in my DBStandardEdition\Bin\Release Folder. DBCore.dacpac And DBStandardEdition.dacpac. When I now use the compare tool of visual studio to compare the DBStandardEdition.dacpac to my Database (and enable the "Include composite objects (database target only)" - option), all looks good. Newly added objects to DBCore project are listed with "Add", all my objects in my DBStandardEdition projects are still there. When I activate the Deployoption "Include composite objects..." everything deploy fine.

推薦答案

您需要啟用架構比較選項"中的包含復合對象(僅限數據庫目標)"選項.默認情況下這是關閉的,這意味著引用的對象將從比較中排除.

You need to enable the "Include composite objects (database target only)" option in the Schema Compare Options. This is off by default and means that the referenced objects are being excluded from the comparison.

這篇關于SQL Server:當引用另一個 SSDT 項目時,DacPac 會刪除所有內容的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

What SQL Server Datatype Should I Use To Store A Byte[](我應該使用什么 SQL Server 數據類型來存儲字節 [])
Interpreting type codes in sys.objects in SQL Server(解釋 SQL Server 中 sys.objects 中的類型代碼)
Typeorm Does not return all data(Typeorm 不返回所有數據)
Typeorm .loadRelationCountAndMap returns zeros(Typeorm .loadRelationCountAndMap 返回零)
How to convert #39;2016-07-01 01:12:22 PM#39; to #39;2016-07-01 13:12:22#39; hour format?(如何將“2016-07-01 01:12:22 PM轉換為“2016-07-01 13:12:22小時格式?)
MS SQL: Should ISDATE() Return quot;1quot; when Cannot Cast as Date?(MS SQL:ISDATE() 是否應該返回“1?什么時候不能投射為日期?)
主站蜘蛛池模板: 一区二区三区在线电影 | 国产精品视频一区二区三区不卡 | 国产探花在线观看视频 | 亚洲欧美国产视频 | 视频在线一区二区 | 国产九九九 | 亚洲av一级毛片 | 九九热在线视频观看这里只有精品 | 久久久性| 精品中文在线 | 久久综合色综合 | 一区二区三区欧美大片 | www国产成人免费观看视频,深夜成人网 | 国产精品99视频 | 亚洲人的av | 国产美女福利在线观看 | 国产美女一区二区 | 精品亚洲视频在线 | jlzzjlzz国产精品久久 | 成人高清在线视频 | 在线成人免费观看 | 一区二区三区免费观看 | 欧美精品片 | 成人水多啪啪片 | 欧美日韩亚洲国产综合 | 在线看av的网址 | 国产精品视频导航 | 欧美日韩一区二区视频在线观看 | 中文字幕亚洲一区二区三区 | 激情视频中文字幕 | 亚洲精品一区二区三区中文字幕 | 亚洲成人国产综合 | 青青草一区二区三区 | 欧美一级做a爰片免费视频 国产美女特级嫩嫩嫩bbb片 | 在线一区视频 | 成人免费视频播放 | 91看片在线 | 色婷婷亚洲 | 成人福利网站 | 91国内精品久久 | 亚洲伊人久久综合 |