开发者

where does one define the creation of the database in the new Visual Studio Database project

开发者 https://www.devze.com 2023-01-03 16:25 出处:网络
I see that I can \"Create a deployment Script and deploy the database\" as a deployment action, howerver it\'s not clear where I script the actual creation of the database?I see under the \"Storage\"

I see that I can "Create a deployment Script and deploy the database" as a deployment action, howerver it's not clear where I script the actual creation of the database? I see under the "Storage" folder a sub folder for Filegroups, Files, and I'm guessing I could drop in a create database script into开发者_如何学Go there, but how do I pick up the database name (which is set as a project property)

Perhaps a better question would be where is this well documented?


The Deploy Action that you see in a VS2010 Database Project Properties will take place when you deploy, which you do either by selecting the Deploy Solution option in the Build menu, or by right clicking on the project in the Solution Explorer.

The name that is used is the Target Database Name, which is set in the same screen.

You don't need to drop the create script anywhere. This is generated for you. If you select the "Create a deployment script and deploy to the database", it is also applied for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消