473,508 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dBase & ODBC woes

Most of the complicated programs I write are boring applications that
manipulate databases associated with the medical billing program where I
work. The program uses foxpro dbases (version 3) for all of its' data.

I'm running into a strange problem that I believe has something to do with
the actual dbase file, but I couldn't find anything on google. Each group
of doctors has its' own patient and billing tables.

I can read the billing table in all cases, but the patient files don't
work for one group of doctors. I think it is because of the memo field. In
Dbase 3, memos are basically kept in a seperate file. I am pretty sure
that this particular database has a corrupted memo field, but I'm not sure
what I can do about it.

The version of Foxpro that is available, 2.5a, is 16 bit and woefully out
of date. It only lets me rebuild the index and repack the database. I've
tried both without result. The database in question is huge with over
150000 records, so I can't start over. I've tried exporting the data to a
new file, but the problem exports with it.

The exception that gets thrown when my program attempts to access this
table is Microsoft.Data.OdbcException "Error [HY000][Microsoft][ODBC dBase
Driver] External table is not in the expected format." I think this might
be because the table reports its' version number as -117 instead of three.

Does anyone have any suggestions at all on how to fix or work around this
problem?

Thanks,

Derek
Nov 16 '05 #1
1 5241
Derek,

How are you copying the data over? If you are doing the equivalent of
"copy to", then it might just do a straight file copy.

What I would do is actually create a new table, and then manually move
records over (when I say manually, in dBase, I would say "create table..."
and then cycle through the rows in the old table, scattering memvar (can you
do that in dBase? You can in FoxPro), appending a blank record, and then
gathering memvar.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Derek Griffiths" <met.n.ospam@gmail> wrote in message
news:op**************@derek.workgroup...
Most of the complicated programs I write are boring applications that
manipulate databases associated with the medical billing program where I
work. The program uses foxpro dbases (version 3) for all of its' data.

I'm running into a strange problem that I believe has something to do with
the actual dbase file, but I couldn't find anything on google. Each group
of doctors has its' own patient and billing tables.

I can read the billing table in all cases, but the patient files don't
work for one group of doctors. I think it is because of the memo field. In
Dbase 3, memos are basically kept in a seperate file. I am pretty sure
that this particular database has a corrupted memo field, but I'm not sure
what I can do about it.

The version of Foxpro that is available, 2.5a, is 16 bit and woefully out
of date. It only lets me rebuild the index and repack the database. I've
tried both without result. The database in question is huge with over
150000 records, so I can't start over. I've tried exporting the data to a
new file, but the problem exports with it.

The exception that gets thrown when my program attempts to access this
table is Microsoft.Data.OdbcException "Error [HY000][Microsoft][ODBC dBase
Driver] External table is not in the expected format." I think this might
be because the table reports its' version number as -117 instead of three.

Does anyone have any suggestions at all on how to fix or work around this
problem?

Thanks,

Derek

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2187
by: Stan Cook | last post by:
Does anyone know how or what I can use to open, read and extract data from a dbase database? I haven't found anything of much use with accompanying documentation.
10
7883
by: level8 | last post by:
I would like to see a Clipper/dbase DBF file as a table in SQL Server 7.0. How can I SELECT rows from DBF file? Should I use OLE DB Provider or ODBC, and how?
3
6651
by: Kshitij Rajhans | last post by:
HI, How to connect to the dBase database?? One option is to create a DSN and use it.But I want to do it in some other way like just passing a connection string or like that. Thanks in...
1
1948
by: Durumdara | last post by:
Hi ! I have a text processor code and I want to put the results to standard files. HTML, XML, SQLite - they are ok. But I want to put these datas to DBF too, because when records are many,...
2
1831
by: chiefsitebuilder | last post by:
I have a question about saving an MS Access program to CD and verifyng that the program works after being saved. Here is my situation, I have a person who developed an application for me using...
3
5685
by: Dave | last post by:
I'm writing a c# Windows program that needs to be able to insert records into a dbase table. I can read it using a dataset but can't insert records. I receive the following error, ERROR ...
0
1549
by: j.np.12 | last post by:
I have an Access XP database which links to dBase III format tables and updates them. The app used to work fine until recently when the dBase index tables keep getting corrupted and need to be...
6
3784
by: Aleyna[] | last post by:
Hi all, I wanted to connect an old DBASE file (I don't know the exact version) but I could not make it at all. I couldn't find a way to execute sql statements on db file using c#. The...
2
11119
by: bcbrock | last post by:
I am trying to figure out how to query some data out of a dbase IV (.dbf) file sitting on a remote server from my MySQL/PHP/Web Server. Both servers are Windows Server 2003 SP2. My...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7132
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7063
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5640
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.