Windows应用程序与服务器来存储数据 [英] windows application with server to store data

查看:94
本文介绍了Windows应用程序与服务器来存储数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个简单的基于窗口的应用程序,仅用于添加,存储数据并查看它们.如何存储数据并在客户端计算机中安装应用程序?

I want to create a simple window based application just to add, store data and view them. How can I store data for it and install application in client computer?

推荐答案

如果您的应用程序数据库基于本地计算机,则将数据库安装到客户端计算机并安装您的软件.

您必须在应用程序代码中设置数据库的连接字符串才能与数据库进行交互.

如果您的应用程序数据库基于Web服务器,则在客户端计算机上安装软件并设置Web服务器数据库的连接字符串.

请输入更多详细信息
If your application database is based on local computer then install your database to the client computer and install your software.

you have to set connectionstring for database in your application code to interact with database.

If your application database is based on webserver then install your software on client machine and set the connectionstring of webserver database.

Please put some more details


检查这些链接..

Windows应用程序 [使用C#为.NET Framework编写Windows窗体应用程序 [ Windows表单 [
check these links..

windows application[^]

Writing a Windows Form Application For .NET Framework Using C#[^]

windows forms[^]


集中化数据库并在clint机器上安装应用程序.
您必须根据远程数据库创建连接字符串,并将其放入app.config文件中,然后使用.
请参见连接字符串
fromate.

如果要使用MS访问,则可以将accdb/mdb文件放在网络驱动器或共享文件夹上,并使用IP地址
Centralized you database and install application on clint machine.
You must need to make connection string according to Remote database and put it in app.config file and then use.
see connection string fromate.

if you want to use MS access then you can put accdb/mdb file on network drive or share folder and use IP address
<add key="con" value="Data Source=192.168.1.1;Initial Catalog=omx;Persist Security Info=True;User ID=sa;Password=s12345%


这篇关于Windows应用程序与服务器来存储数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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