foxpro

How to create a join across two foxpro databases using the MS Ole DB provider?

Deadly 提交于 2019-12-10 18:26:54
问题 Question: I am working with existing commercial MS Visual Foxpro application, and need to extract data from the database directly using a c# application. Unfortunately, not all of the tables are stored in the same database, some of the records are stored in a database broken down by year. How do I create a query against these two databases using a single join? I am using Microsoft's OLE DB Provider for Visual FoxPro 9.0 (SP2) More Detail: Essentially, the customer information is stored in one

IDS an over-kill for a single-user app?

一个人想着一个人 提交于 2019-12-10 17:49:54
问题 I have the following dilema: My clients (mom-n-pop pawnshops) have been using my mgmt. system, developed with ISQL, for over 20 years. Throughout these two decades, I have customized the app to each clients desire, or when changes in Laws/Regulations have required it. Most clients are single-user sites. Some have multiple stores, but have never wanted a distributed db, don't trust the reliability or security of the internet or any other type of networking. So, they all use Standard Engines. I

SQL - Return limited number of rows, but full row count

。_饼干妹妹 提交于 2019-12-10 16:47:34
问题 Scenario: I need to pull information out of a Visual FoxPro database; however, running large queries against this has a tendency to lock the system up. To resolve this, we put limits in place that cancelled the query if it ran past a certain amount of time, and limited the number of rows it would return. Is there a way to have a query with "SELECT TOP ###", but also return the actual number of rows found through the statement? Or is the only way to run the query twice? (reason being we can

LINQ with FoxPro?

故事扮演 提交于 2019-12-10 03:45:16
问题 Is there a reasonable way to access FoxPro databases using LINQ? 回答1: One the blessing/curses of .NET is that the answer is rarely "no" to any .NET programming question. For example, this guy (thanks Sergey and Larry) shows a way to access FoxPro-type DBs with LINQ: http://blogs.msdn.com/calvin_hsia/archive/2007/11/30/6620133.aspx A better question is probably, not can you, but should you!? If you insist on such an option, the Entity Framework is probably a better place to look: http://msdn

Connect to Foxpro with PHP using OLE DB driver

别等时光非礼了梦想. 提交于 2019-12-08 09:16:42
问题 I'm trying to connect to a Foxpro database using the OLE DB Driver I downloaded the driver from http://www.microsoft.com/en-us/download/details.aspx?id=14839 and installed it then create a php script $conn = new COM("ADODB.Connection") or die("Cannot start ADO"); $conn->Open("Provider=vfpoledb.1;Data Source=C:\Opera3\Comp_I.DBC;Collating Sequence=machine"); This gives me the following error Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> ADODB.Connection<br/><b

How to Read a DBase File in Java or Oracle PL/SQL

寵の児 提交于 2019-12-08 00:00:30
I've been provided a Dbase file (.dbf) and have been asked to implement a parser to load the data into an Oracle DB. The only available tools I have on hand are Java 8 and Oracle PL/SQL. Having never written a parser or dealt with this data format before, I'm completely lost as to how to go about the whole thing. Any help or guidance would be most appreciated. Thank you, After tearing my hair out for some time, I think I've finally found an answer. Seemed a little crass to answer my question myself, so I posted it here: https://stackoverflow.com/a/56303353/1148258 Hope it helps anyone else

Can I extract a file from a foxpro general field?

随声附和 提交于 2019-12-07 13:22:51
问题 I'm porting a VFP 9 application to SQL Server. The VFP app has some tables with "general" fields in them. I get a byte array when query the field, and when I save it to disk, I can look inside and see it's a word document, or a Paint BMP, etc. From reading around, I've found that the general field is a proprietary format and contains a thumbnail image of the preview of the document (amongst other things, I'm sure). Can somebody point me to some code that would extract firstly the type of file

SQL Join Tables

我怕爱的太早我们不能终老 提交于 2019-12-07 03:11:42
问题 Table one contains ID|Name 1 Mary 2 John Table two contains ID|Color 1 Red 2 Blue 2 Green 2 Black I want to end up with is ID|Name|Red|Blue|Green|Black 1 Mary Y Y 2 John Y Y Y Thanks for any help. Thanks for the responses. I'm going to re-post this with some additional info about exactly what I'm trying to do that may complicate this. Can someone close this? 回答1: If you use T-SQL you can use PIVOT (http://msdn.microsoft.com/en-us/library/ms177410.aspx) Here is query I used: declare @tbl_names

someone knows how to delete pack foxpro data from oledb driver with c#

最后都变了- 提交于 2019-12-06 07:31:41
问题 this is my code //Probando insercion OleDbConnection conexionFoxPro = new OleDbConnection(); string rutaFoxPro = @"C:\Users\BigMander\Documents\Proyectos de Visual FoxPro\prueba.dbc"; conexionFoxPro.ConnectionString = String.Format("Provider=VFPOLEDB.1;Data Source={0};Exclusive=Yes;", rutaFoxPro); bool sePudoEjecutarTodo = true; try { conexionFoxPro.Open(); OleDbCommand comandoFoxPro = new OleDbCommand(); comandoFoxPro.CommandText = @"INSERT INTO test ([nombre], [telefono], [id]) VALUES (?, ?

Working with the Visual Fox Pro OleDb

烂漫一生 提交于 2019-12-06 07:15:22
问题 I am trying to pull data from DBF files into my program using C#. I am using the Visual FoxPro OLE DB Provider. It works fine on my local machine but I want to package up my program into dll that clients can use. The problem is when they run the program from their machine it says that the Visual FoxPro OLE DB Provider isn't registered on their machine. Is there any way to use this without having the client install the Visual FoxPro OLE DB Provider on their machine? 回答1: The short answer is no