dbase

What is a good way of accessing dBase files using BDE and Delphi?

◇◆丶佛笑我妖孽 提交于 2019-12-24 11:28:47
问题 First of all, I must state that I'm a complete newb when it comes to Delphi, although I did some Turbo Pascal programming in school, some fourteen years ago... I have a commercial Delphi program which uses dBase database and BDE for accessing them. I basically need to interface another application written in C# to this database, to be able to do SQL operations such as select, insert, update and delete. Unfortunately using OLEDB against dBase results in broken indexes, only native BDE apps

the “deleted row” indicator in dbase?

拟墨画扇 提交于 2019-12-24 09:11:54
问题 As you know there is no x64 driver for dBase. "http://msdn.microsoft.com/en-us/vfoxpro/bb190289.aspx" I tried to make one. It is extremely faster than ODBC.but there is only one problem. I cannot determine if a row is deleted or not. 回答1: The first byte of each record (not header or field description, but actual record data) will contain an asterisk ("*") if the record is deleted, or a blank space (" ") if not. Here's something I found a while back on Wotsit.org that may help: ---------------

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

倖福魔咒の 提交于 2019-12-23 03:17:15
问题 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, 回答1: After tearing my hair out for some time, I think I've finally found an answer. Seemed a little crass to answer my

How does one find out how a DBF file or any file is formatted?

扶醉桌前 提交于 2019-12-23 03:12:18
问题 I am attempting to pick apart a DBF file using the code in THIS AskTom post however I have no clue where I would even go to figure out how the files I'm wanting to pick apart are formatted? How was the original AskTom answer even produced? How do I figure out the dbf Header. How do I know where within the dbf file the data is stored or even how to pull out that data? My goal is to work with the code provided and come up with a solution as others have done but I'm stuck at the very first part.

How does one find out how a DBF file or any file is formatted?

寵の児 提交于 2019-12-23 03:12:06
问题 I am attempting to pick apart a DBF file using the code in THIS AskTom post however I have no clue where I would even go to figure out how the files I'm wanting to pick apart are formatted? How was the original AskTom answer even produced? How do I figure out the dbf Header. How do I know where within the dbf file the data is stored or even how to pull out that data? My goal is to work with the code provided and come up with a solution as others have done but I'm stuck at the very first part.

How can I read a part of a dBase file

人盡茶涼 提交于 2019-12-22 09:48:15
问题 I have a very large dBase file (1.64Gb). It takes a very long time to load the whole file in R using the standard foreign::read.dbf() function. I would like to load only a few variables in the dataset. Does anyone have a solution ? 回答1: I think the read.dbf(...) function in package foreign was intended for reading the *.dbf part of a shapefile, in which case reading in part of the file really doesn't make sense. You seem to want to do something different. Using RODBC might work, depending on

Python dbfpy and FoxPro

﹥>﹥吖頭↗ 提交于 2019-12-21 20:06:59
问题 Alright, I'm using an ancient database format here, dbf files. Don't ask why, just know a certain software decided to extend foxpro support because microsoft decided to extend foxpro support. Now, I'm getting the following error on a specific file. I have successfully loaded another file and I'm curious if there is something wrong with this database. I'm sure you probably need to look at the database to determine that, but its way to huge to post so I'll take what I can get. Traceback (most

.NET Connection to dBase .dbf file

只谈情不闲聊 提交于 2019-12-21 06:38:07
问题 I'm trying to read a dBase III .dbf file using .NET and Winforms and nothing I've tried seem to work. I tried four different connection methods and every one of them hangs on Open method. No exceptions, no timeouts, no event messages, nothing. The form just sits there. Any ideas about what could be wrong? Here's the methods I've tried. The .dbf file is at d:\db: private void read1() { string c = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\db\\;Extended Properties=dBASE III";

Copying to/from Dbase data using Access

走远了吗. 提交于 2019-12-20 07:31:08
问题 I am stuck with some legacy back ends using dBase IV, and would like to be able to copy records from one table to another using an Access front end. The simple answer would be to link to the source and destination tables and run an INSERT query or similar. However, in my situation, the back end is not a single DBF file, but there are several hundred files that I need to dynamically link to for the copy operation. Currently I have to change and refresh the link definition using the TableDefs

Using Python to write dbf table with fpt memos

久未见 提交于 2019-12-14 03:12:24
问题 I have a legacy application that uses .dbf and .fpt files. I am looking to read and write those files, I have figured out a way to write these files but not using fpt memos. I am using python 2.7.2 and dbf module 0.95.02. When I try to use the dbf module I get an error when trying to use FpTable. >>> import dbf >>> table = dbf.FpTable('test','name C(25); age N(3,0); qualified M') >>> table Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/doctor/.virtualenvs