如何在安装过程中创建数据库? [英] How to create database during installation?

查看:100
本文介绍了如何在安装过程中创建数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题如下:

1。发布2层应用程序后,在安装过程中,数据库已创建,一切正常。当我卸载应用程序时,数据库仍然在那里(在SQl中),并且我必须删除该数据库  manualy。

1. after publishing 2-tier app, and during installation, the database is created and everything works fine. When I uninstal app, the database is still there (in SQl), and I have to remove that database manualy.

2。下次,当我尝试再次安装相同的应用程序时,安装了应用程序,但是程序不知道数据库不在那里。

2. next time, when I try to install the same app again, app is installed, but program don't know that database is not there .

3.最重要的是如果我做新的发布并开始新安装,再次创建数据库。

3.strange thing is that if I make new publish and start new install, database is created again.

知道发生了什么事吗?

推荐答案

       发布应用程序时,需要选择"直接发布到数据库";发布向导中的选项,以便创建可与应用程序一起使用的数据库。希望这能回答你的问题。

        When you publish the application, you need to select "Publish directly to database" option in the publish wizard inorder to create a database that can be used with the app. Hope this answers your question.

谢谢,b
Sandeep

Thanks,
Sandeep


这篇关于如何在安装过程中创建数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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