复制数据库或在安装程序中通过脚本创建 [英] Copying the database or creating by script in setup

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

问题描述

大家好,



我想通过installshield为我的winform c#application创建一个设置。我的应用程序可以使用sql server数据库。

现在我有两个选项可以将数据库添加到运行我的设置的目标计算机:



1)添加数据库文件安装完成后,将它们粘贴到目标计算机中



2)再次运行一些sql脚本创建它安装完成后。



现在的问题是哪一个最好?

Hi all,

I want to create a setup by installshield for my winform c# application.My application works with a sql server database.
Now i have two options to add the database to the destination computer which run my setup :

1)Add the database files to the setup and then paste them in the destination computer after the setup has finished
Or
2)Create it by run some sql scripts again after the setup has finished.

Now the question is that which one is the best?

推荐答案

你好,



据我说第二个是最好的。



1.如果你需要做任何现有应用程序中的DB更改您只需为这些更改添加脚本。

2.升级很容易(如果提供)。



谢谢,

Hitesh Varde
Hello,

According to me 2nd one is best.

1. If you need to make any DB changes in existing application you simply need to add script for those changes.
2. Upgrade would be easy(If provided).

Thanks,
Hitesh Varde


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

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