DBF with 503 fields

Hello All.

I have a DBF with 503 fields in my server . I could able to open in read only using dBase V. The dbf is updated thru an application. I want to query the file using VB or VFP. Thanks for all inadvance .

Hari

[227 byte] By [S.G.K.Hari] at [2008-1-10]
# 1

As yuu have been told on other forum use ODBC to query the data in parts and connect them with a 1-to-1 relation.

CetinBasoz at 2007-10-3 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 2

Dear Cetinbasoz

Will you please tell me which odbc driver I should use to query.

S.G.K.Hari at 2007-10-3 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 3
I don't know. Last dBase I used was dBaseIII+. Ask your vendor, probably you already have the driver installed. You may find a driver from intersolv or datadirect.
CetinBasoz at 2007-10-3 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 4
Thanks for ur information. I have already tried with the dbase III+, IV, V odbc drivers. I am unable to query the table.
S.G.K.Hari at 2007-10-3 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 5

As I know vfp does not accept tables with more than 255 fields. You may need to split you table in order to use it with vfp.

dni at 2007-10-3 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 6

What does that mean "I am unable to query". What is the aerror() result? Is ODBC driver is for dBase V? Did you try querying just a few fields first? If that succeeds proceed with split queries.

CetinBasoz at 2007-10-3 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 7
Yes. I use ODBC for dBase V. When I try to query the table I am getting an error message as 'Not a Table'. I want to query only some few fields. Help me in this regard.
S.G.K.Hari at 2007-10-3 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 8

Would you show your connectionstring and sqlexec().

CetinBasoz at 2007-10-3 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 9

S.G.K.Hari,

We are changing the issue type to “Comment” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Thank you!

BrunoYu-MSFT at 2007-10-3 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...