| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sat Mar 13, 2004 10:29 am Post subject: Work with Dbase Files through vdsdb.dll |
|
|
Hi,
does somebody know how to setup a dbf (dbase) connection and how to query such files through vdsdb.dll ?
I know Windows has a DSN for Dbase, but I dont know how to setup it
db setup,"Microsoft dBase Driver (*.dbf)",DSN=netfax,UID=admin,PWD=,DataDirectory=,DBQ=
And how do I have to query such files. As I know they have only one table in a file, so select * from .... should not work ???
Thanks for your help.
Bye, Fabian |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Sun Mar 14, 2004 12:01 pm Post subject: |
|
|
You mean an error message like this: '|234234234' ?
If so, than it will probably be a VDS error, or some kind of an error which vdsdb.dll can't handle. You could try removing the errortrap, and running the code again (or removing the errortrap just before you call that query)
Regards,
Vic _________________ phpBB Development Team |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sun Mar 14, 2004 3:37 pm Post subject: |
|
|
Hi Vic,
yes. I am talking about such an error. If I remove the errortrap there is still an error on the line select * from file.dbf
Do you know what the problem is ? |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Sun Mar 14, 2004 8:16 pm Post subject: |
|
|
Hmm... there could be a problem with that dbf driver, you could send Tommy a PM. Perhaps he can help you.
But it's strange that you have to call a query like 'SELECT * FROM <database name>. Usually this should be 'SELECT * FROM <table>'
Regards,
Vic _________________ phpBB Development Team |
|
| Back to top |
|
 |
|