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

在 Visual Studio 數據庫項目/SQL Server 中創建默認數

Creation of default data in Visual Studio database projects / SQL Server(在 Visual Studio 數據庫項目/SQL Server 中創建默認數據)
本文介紹了在 Visual Studio 數據庫項目/SQL Server 中創建默認數據的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

有沒有辦法在VS 2010的數據庫項目中使用數據生成計劃來創建一組默認數據?或者我是在吠錯樹,即數據生成計劃最適合創建虛擬示例數據嗎?

Are there way to using data generation plans in VS 2010's database projects to create a set of default data? Or am I barking up the wrong tree i.e. are data generation plans best suited to create dummy example data?

我們有一堆數據(默認設置、默認用戶等)需要為每個數據庫部署創建.如果有工具可以幫助我們解決這個問題,那就太好了,這樣就可以進行源代碼控制和更好的管理.

We have a bunch of data (default settings, default users etc etc) that needs to be created for each database deployment. It would be nice to have tooling to help us with this, so it can be source controlled and better managed.

我猜可能有第三方替代品,但我希望有一個內置的 Visual-Studio-Way 做事方式,因此它可以與 TFS 等很好地集成.

I'm guessing that there are probably third party alternatives, but I'm hoping there is a built-in Visual-Studio-Way of doing things, so it can integrate nicely with TFS etc.

推薦答案

可能有不同的方法來做到這一點,但基本的是:

There are probably different ways to do this, but the basics are to:

  1. 創建一個插入默認數據的腳本
  2. 編輯 Script.PostDeployment.sql 腳本以使用您的腳本插入默認值

例如,我在項目的 Scripts->Post-Deployment 文件夾下創建了一個新文件夾 DefaultData,并在此處添加了用于插入默認數據的腳本 InsertDefaultData.sql.然后,我將以下行添加到 Script.PostDeployment.sql ":r ..\DefaultData\InsertDefaultData.sql".

For example, I created a new folder, DefaultData, under the Scripts->Post-Deployment folder of my project and added my script for inserting the default data here, InsertDefaultData.sql. Then, I added the following line to Script.PostDeployment.sql ":r ..\DefaultData\InsertDefaultData.sql".

這篇關于在 Visual Studio 數據庫項目/SQL Server 中創建默認數據的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 .loadRelationCountAndMap returns zeros(Typeorm .loadRelationCountAndMap 返回零)
MS SQL: Should ISDATE() Return quot;1quot; when Cannot Cast as Date?(MS SQL:ISDATE() 是否應該返回“1?什么時候不能投射為日期?)
Converting the name of a day to its integer representation(將一天的名稱轉換為其整數表示)
How to convert nvarchar m/d/yy to mm/dd/yyyy in SQL Server?(如何在 SQL Server 中將 nvarchar m/d/yy 轉換為 mm/dd/yyyy?)
主站蜘蛛池模板: 成人免费网站 | 亚洲一区二区视频 | 精品在线免费观看视频 | 一区二区三区四区在线视频 | 成人免费视频 | 亚洲综合第一页 | 伊人中文字幕 | 国产一级一级国产 | av中文天堂| 国产黄色网址在线观看 | 成人免费在线播放 | cao在线 | 日韩精品一区二区三区在线播放 | 成人免费视频网站在线观看 | 日日骚av| 国产日韩精品一区二区 | 99爱国产 | 欧美性a视频 | 欧美亚洲国产一区二区三区 | 天天夜夜操 | 99精品国自产在线 | 亚洲福利电影网 | 一区二区中文 | 国产色网站 | 九九九色| jdav视频在线观看免费 | 久久亚洲天堂 | 国产精品一区二区在线 | 日韩亚洲视频 | 日本免费一区二区三区视频 | 精品中文字幕一区 | 成人三级在线观看 | 久久久精品影院 | 麻豆精品一区二区三区在线观看 | 国产成人精品免费 | 91精品国产91久久久久久吃药 | 欧美激情va永久在线播放 | 国产精品污www一区二区三区 | 欧州一区二区三区 | 九九热这里 | 日韩欧美一区二区三区免费观看 |