问题在Windows应用程序设置C#.net中 [英] Problem In windows application setup C#.net

查看:76
本文介绍了问题在Windows应用程序设置C#.net中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在C#.net上创建了一个Windows应用程序,其中sql server 2008上的数据库由visual studio 2010提供。

我已成功创建设置该项目,但在安装时,安装程​​序未成功运行。它显示安装sql server 2008时出错。

那么,如何创建将在每台PC /系统/计算机上成功安装的安装程序完整的数据库查询(插入/删除/更新等)。

请帮助我......

Hello,
I was created one windows application in C#.net with database on sql server 2008 which is given by visual studio 2010.
I was successfully created setup of that project but at the installation time the setup not run successfully.It shows error on installing sql server 2008.
So,how can I create setup which will be successfully install on every PC/System/Computer with complete database queries(insertion/deletion/updation etc).
PLEASE HELP ME......

推荐答案

基于你的问题是,你已经开发了一个将被多个系统共享的应用程序(我认为它将使用单个数据库,就像所有机器的条目转到单个数据库一样)。(1个服务器用于数据库和许多其他机器用于应用程序) )



如果上面的陈述是真的那么,你不必在每台机器上安装数据库。仅在服务器和安装中安装数据库在其他机器上安装应用程序。



在Visual Studio安装项目中添加.NET Framework的先决条件 [ ^ ]




该声明是假的然后我认为你只为包含数据库本身的单个机器开发了一个应用程序。并且您将为不同的客户安装应用程序。((1台带数据库和应用程序的机器)*没有客户端)

部署应用程序和数据库 [ ^ ]

在安装.NET应用程序期间创建数据库 - 版本2 [ ^ ]
Based on your question, you have developed an application which is going to be shared by multiple systems(I think it's going to use the single database, like entries from all machines goes to single database).(1 server for database & many other machines for application)

If the above statement is true then, you don't have to install database on every machine. Install the database only in server & install the application on other machines.

Add Prerequisites of .NET Framework in Visual Studio Setup Project[^]


It that statement is false then I think you have developed an application only for single machine which includes the database itself. And you're going to install the application for different clients.( (1 machine with database & application) * No of clients)
Deploy your Application and Database[^]
Create database during installation of a .NET application - Version 2[^]


这篇关于问题在Windows应用程序设置C#.net中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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