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

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

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

問題描述

限時送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 項目引用具有相同數(shù)據(jù)庫"的 DBCore 項目選項.

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

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

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 中的架構比較工具將演示服務器上的數(shù)據(jù)庫與我的 dacpac 文件進行比較時,該工具想要刪除我在 DBStandardEdition 項目中定義的所有對象.我們還有一個使用 DacServices - 類 (DacServices.Deploy) 發(fā)布 dacpac 文件的程序.該程序?qū)嶋H上刪除了我的 DBStandardEdition.dacpac 文件中定義的所有內(nèi)容.

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?

更新我在我的項目設置中發(fā)現(xiàn)了一個問題.我已經(jīng)設置了構建輸出文件名"將所有數(shù)據(jù)庫項目設置為相同的值.更改此設置后,Visual Studio 會在我的 DBStandardEdition\Bin\Release 文件夾中生成兩個 DacPac - 文件.DBCore.dacpac 和 DBStandardEdition.dacpac.當我現(xiàn)在使用 Visual Studio 的比較工具將 DBStandardEdition.dacpac 與我的數(shù)據(jù)庫進行比較(并啟用包括復合對象(僅限數(shù)據(jù)庫目標)"- 選項)時,一切看起來都不錯.新添加到 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.

推薦答案

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

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 會刪除所有內(nèi)容的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關文檔推薦

What SQL Server Datatype Should I Use To Store A Byte[](我應該使用什么 SQL Server 數(shù)據(jù)類型來存儲字節(jié) [])
Interpreting type codes in sys.objects in SQL Server(解釋 SQL Server 中 sys.objects 中的類型代碼)
Typeorm Does not return all data(Typeorm 不返回所有數(shù)據(jù))
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轉(zhuǎn)換為“2016-07-01 13:12:22小時格式?)
MS SQL: Should ISDATE() Return quot;1quot; when Cannot Cast as Date?(MS SQL:ISDATE() 是否應該返回“1?什么時候不能投射為日期?)
主站蜘蛛池模板: 在线免费黄色小视频 | 色综合一区二区 | 男女羞羞网站 | 日韩喷潮| 999精品在线 | 亚洲国产91 | 在线黄色网 | 日韩午夜场 | 国产乱码精品一区二区三区五月婷 | a国产视频 | 欧美精品在线免费观看 | 亚洲精品久久久一区二区三区 | 婷婷国产一区 | 香蕉久久a毛片 | 欧美群妇大交群中文字幕 | 精品久久久久久亚洲精品 | 99re在线视频 | 欧美一区二区三区在线看 | 亚洲一区二区三区在线播放 | 天天亚洲 | 狠狠综合网 | 亚洲天堂一区二区 | 在线欧美小视频 | 色综合成人网 | 99精品视频免费观看 | 日韩精品视频中文字幕 | 日本爱爱 | 久久久精品一区二区三区四季av | 午夜视频在线 | 亚洲日韩中文字幕一区 | k8久久久一区二区三区 | 91免费在线 | 日韩一区二区在线观看 | 亚洲三级av| 国产亚洲精品美女久久久久久久久久 | 91免费看片 | 色999视频| 亚洲人成人一区二区在线观看 | 日韩精品一区二区三区中文在线 | 日韩成人国产 | 黄色免费在线网址 |