在建立安装文件时添加数据库 [英] adding database while building setup file

查看:83
本文介绍了在建立安装文件时添加数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿ppl,ny1可以建议我去做以下这些事情.
我正在创建一个简单的应用程序,其中包括3种形式,这些形式需要i/p,存储在数据库中(使用sql server 2008的i''m)并显示回搜索到的项目,现在我的问题是我想创建一个上面的应用程序的安装文件,我的应用程序应在其中执行以下操作.
->它应该在安装文件中包含sql server 2008中使用的数据库
->安装程序成功安装在没有sql server的其他计算机上

hey ppl,can ny1 suggest me hw to go bout the following.
I''m creating a simple application which includes 3 forms,which takes i/p,stores in the database(i''m using sql server 2008) and display back the searched item,now my problem is tat i want to create a setup file for the above application,in which my application should do the following..
->it shud include the database wich im usin in sql server 2008 in the setup file
->the setup shud successfully be installed on ny othr machine wich doesn''t hav the sql server

推荐答案

如果您的计算机中没有sql server其他计算机上,则可以使用sql脚本安装数据库并指向另一台计算机(sql server实例)

脚本 [ ^ ]

取决于您是否要使用installshield,VisualStudio或其他方式.
If you don''t have sql server in your other machine, you could install the DB using a sql script and pointing to another machine (instance of sql server)

script[^]

Depends if you are going to use installshield, VisualStudio, or another how you will do it.


您在VB论坛中提出了此问题.
不要交叉张贴.
另外,不要像孩子一样说话.

如果您觉得只能用数字形式的点击和咕unt进行交流,请尝试其他开发者网站.

Txtspk适用于那些笨拙的十几岁的女孩和白痴,他们不愿意用笨拙的猿猴手指在键盘上正确打字.
You asked this question in the VB Forum.
Do not cross post.
Also, do not speak like a child.

If you feel only able to communicate in the digital equivalent of clicks and grunts then try another developer site.

Txtspk is for insolent teenage girls and morons who cannot be bothered to type on a keyboard properly with their fat simian fingers.


看看针对类似问题创建设置并支持使用VS.NET创建数据库 [在安装.NET应用程序期间创建数据库 [部署您的应用程序和数据库 [
Look at the answers given for the similar question asked here[^].

Various article links are present in it that will help you achieve the same.

Have a look at these too:
Creating setup With support for database creation Using VS.NET[^]
Create database during installation of a .NET application [^]
Deploy your Application and Database[^]


这篇关于在建立安装文件时添加数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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