数据从客户端计算机传输到Web服务器 [英] Data transfer from Client machine to Web server

查看:151
本文介绍了数据从客户端计算机传输到Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有两个应用程序,一个是桌面应用程序,另一个是具有Sql Server 2005数据库的Web应用程序.桌面应用程序用于数据输入,而Web应用程序用于在线报告.如何通过检查Web服务器数据库上的重复数据并检查表关系来将所有表数据从一台sql服务器传输到第二台sql服务器.
我们希望每2小时间隔传输一次数据,而又不停止桌面应用程序的运行和快速的数据传输.
当前,我们实现了Windows服务,并且正在使用批量插入.
但是我们有问题.我们无法对其进行交易.并且在电源故障或重新启动系统时,我们无法回滚,并且通过Web服务器数据库上的唯一键,我们需要从表中删除多余的行.
我们的资源最少,互联网速度也很慢.
请给我一个最好的解决方案.

关于问候
Manoj

We have two application one is desktop application and second is web application with Sql server 2005 database. Desktop application is using for data entry purpose and web application using for online reporting purpose. how to transfer all table data from one sql server to second sql server by checking duplicate data on web server database and by checking table relation also.
We want to transfer data in every 2 hours interval without stop desktop application and fast data transfer.
Currently we implemented a windows service, and we are using bulk insert.
but we having problem in it. We can not apply transaction on it. and at the time of power fail or restart the system We can''t rollback and by the unique key on web server database we need to remove extra rows from the table.
We have minimum resources and slow internet speed.
Please give me a best solution for it.

With regards
Manoj

推荐答案

你好朋友...

解决方案的一个建议...

正如您所说的,您使用sql server数据库+ Windows应用程序进行数据输入......

和第二个sqlserver数据库+ Web应用程序以在线显示报告...

所以使用这个不是一个好主意...

只需使用一个数据库,并将其与Windows应用程序和Web应用程序一起使用,这样就无需触发任何跨数据库查询,实时数据也将用于Web应用程序中的报表....

所以我认为这可以解决你们两个问题....

在所有Web和桌面应用程序中使用conman中央服务器数据库的想法,它将更快,并为用户提供最新数据的正确报告...
Hello Friend...

One Suggestion for your solution...

As you say that you use sql server database + windows application for data entry purpose...

and second sqlserver database + web application to show report online...

so it is not good idea to use this...

simply use only one database and use it with both windows app and web app so you not need to fire any cross database query and also the live data will used for reporting in web app....

so i think this will solve your both issue....

use a conman central server database idea for all web and desktop app it will faster and also provide proper reports to user with latest data...


这篇关于数据从客户端计算机传输到Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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