forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Work with Dbase Files through vdsdb.dll

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sat Mar 13, 2004 10:29 am    Post subject: Work with Dbase Files through vdsdb.dll Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sun Mar 14, 2004 9:28 am    Post subject: Reply with quote

I found some documentation on the web

http://www.able-consulting.com/MDAC/ADO/Connection/ODBC_DSNLess.htm#ODBCDriverForDBASE

http://www.winscripter.com/WSH/Database/66.aspx

Now I know how to setup and how to query dbase (select * from filename.dbf), but I get error 27 on the query line. The errormessage from @db(error) looks like some numeric characters and a "|" sign.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sun Mar 14, 2004 12:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sun Mar 14, 2004 3:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sun Mar 14, 2004 8:16 pm    Post subject: Reply with quote

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>' Confused

Regards,
Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group