简体   繁体   English

从C#访问FoxPro 2.6

[英]Accessing FoxPro 2.6 from C#

I have a need to access data stored in a FoxPro 2.6 application using a modern application. 我需要使用现代应用程序访问存储在FoxPro 2.6应用程序中的数据。

I had assumed that I would access said data in FoxPro using an ODBC Dataconnection and that my weapon of choice would be a WCF service. 我以为我可以使用ODBC Dataconnection在FoxPro中访问上述数据,而我选择的武器是WCF服务。

Call comes in from 3rd party application; 呼叫来自第三方应用程序; hit service. 打服务。 Service polls FoxPro database and returns the results. 服务轮询FoxPro数据库并返回结果。 Firstly does this sound sound? 首先,这听起来不错吗?

Secondly it is more complicated than that. 其次,这要复杂得多。 It seems that there are procedures in the FoxPro app that PROCESS the data and return the processed result. 似乎FoxPro应用程序中有一些过程可以处理数据并返回处理后的结果。

Are there any ways to do this? 有什么方法可以做到这一点?

Any help much appreciated! 任何帮助,不胜感激!

You haven't specified if this is FoxPro 2.6 (DOS) or FoxPro 2.6a (Windows) but either way I don't like your chances. 您尚未指定这是FoxPro 2.6(DOS)还是FoxPro 2.6a(Windows),但无论哪种方式,我都不喜欢您的机会。

I would suggest you get the data out and put it into a database that is easy for you to access. 我建议您取出数据并将其放入易于访问的数据库中。 FoxPro should allow you to export the data to several other formats, especially if you use a newer version of Visual FoxPro to open the old FoxPro database. FoxPro应该允许您将数据导出为其他几种格式,尤其是如果您使用更新版本的Visual FoxPro打开旧的FoxPro数据库时,尤其如此。 Procedures are just code that can be changed over as well. 过程只是可以更改的代码。

It's a one time pain that will save you so much time down the road. 这是一次痛苦,将为您节省很多时间

Also, FoxPro databases are quite easy to get corrupted so I would suggest you make sure it's backed up! 另外,FoxPro数据库很容易被损坏,因此我建议您确保已对其进行备份!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM