多个数据源,一次输入表格 [英] Multiple data sources, single entry form

查看:137
本文介绍了多个数据源,一次输入表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试查找有关使用一种通用形式访问不同数据源的信息.我是C#初学者,但是是高级VFP开发人员,并且想了解更多C#.我的办公室在我开始工作之前就编写了一个旧程序,该程序已在内部和外部使用.该程序有2个版本,具体取决于运行源.我想重写此程序,但是只有一个版本可以检查它是否能够连接到我们的sql服务器并建立连接,或者如果不能,则使用该程序可以存储的程序本地数据库数据将被传输回我们的办公室.如果无法连接到我们的sql server,最好使用什么数据库?做这样的事情的最好方法是什么?任何帮助都将不胜感激.

谢谢
Ron

I am trying to find information about using one common form to access different data sources. I am a beginner C# programmer, but a senior VFP developer and would like to learn more C#. Our office has an old program, written before I started here, that is used internally and out in the field. There are 2 versions of the program depending on where it is ran from. I would like to rewrite this program, but only have one version that can check if it is able to connect to our sql server and make the connection, or if not, then use a different, local to the program, database that it can store the data in to be transmitted back into our office. What would be the best database to use if it can not connect to our sql server? What would be the best way of going about doing something like this? Any and all help would be greatly appreciated.

Thanks
Ron

推荐答案

我认为您正在寻找类似有时连接"的移动应用程序情况下本地缓存的数据副本.
检出您发现的某些内容
I think you''re looking for something like a locally cached copy of data in a "sometimes connected", mobile application situation.

Checkout some of the stuff you find here[^] for some ideas.


在您使用SQL Server时处于离线状态,也许您可​​以尝试使用Sync Framework
[ ^ ]或复制.使用本地数据库.

只是众多可能的解决方案之一

问候
Espen Harlinn
Use SQL Server when you are offline, maybe you can try playing with the Sync Framework
[^] or replication. Work with your local database.

Just one of many, many possible solutions

Regards
Espen Harlinn


这篇关于多个数据源,一次输入表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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