创建设置并支持使用VS.NET创建数据库 [英] Creating setup With support for database creation Using VS.NET

查看:73
本文介绍了创建设置并支持使用VS.NET创建数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建设置并支持数据库创建使用VS.NET

Creating setup With support for database creation Using VS.NET

推荐答案

最简单的方法是使用SQL Server Management Studio创建文件:
右键单击列表中的数据库.
从下拉列表中选择脚本数据库为...",然后选择拖放并创建到...文件".
这将创建一个.SQL文本文件,其中包含您可以提供给现有SQL Server实例以重新创建数据库的命令.请注意,它会清空任何现有数据库,并且在创建新数据库时将不包括数据记录.
The easiest way is to to use the SQL Server Management studio to create the file:
Right click the database from the list.
Select "Script Database as..." from the drop down, then select "DROP and CREATE to"..."File".
This will create a .SQL text file that contains commands you can feed to an existing SQL server instance to re-create the database. Note that it will empty any existing database, and will not include an data records when it creates the new one.


这篇关于创建设置并支持使用VS.NET创建数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆