If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > can't solve weird ODBC dbase Driver error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-27-02, 11:12
stauf stauf is offline
Registered User
 
Join Date: Mar 2002
Posts: 8
can't solve weird ODBC dbase Driver error

I'm doing queries on .dbf files.
When I have 5 inner join clause
there is this error

-2147467259 (80004005)
[Microsoft][ ODBC dbase Driver ] Unexpected error from external database driver
If I run this query in Acces or in Paradox there's no problem and the data comes out (select statement)

I tried two connection strings
conADO.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=""DSN=dBASE Files;DBQ=" & strDatabaseImos & ";DefaultDir=" & strDatabase & ";DriverId=533;MaxBufferSize=2048;PageTimeout= 5;"" "

and this one
conADO.ConnectionString = "Driver={Microsoft dBASE Driver (*.dbf)}; DriverID=277; Dbq=" & strDatabase & ";"


the same error came out.

I look in google and msdn and find nothing interresting.
Somebody got an idea ? or need more information ?
Reply With Quote
  #2 (permalink)  
Old 01-21-04, 07:19
Libos Libos is offline
Registered User
 
Join Date: Jan 2004
Posts: 1
Re: can't solve weird ODBC dbase Driver error

Quote:
Originally posted by stauf
I'm doing queries on .dbf files.
When I have 5 inner join clause
there is this error

-2147467259 (80004005)
[Microsoft][ ODBC dbase Driver ] Unexpected error from external database driver
If I run this query in Acces or in Paradox there's no problem and the data comes out (select statement)

I tried two connection strings
conADO.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=""DSN=dBASE Files;DBQ=" & strDatabaseImos & ";DefaultDir=" & strDatabase & ";DriverId=533;MaxBufferSize=2048;PageTimeout= 5;"" "

and this one
conADO.ConnectionString = "Driver={Microsoft dBASE Driver (*.dbf)}; DriverID=277; Dbq=" & strDatabase & ";"


the same error came out.

I look in google and msdn and find nothing interresting.
Somebody got an idea ? or need more information ?
Reply With Quote
  #3 (permalink)  
Old 01-27-04, 10:29
timclaason timclaason is offline
Registered User
 
Join Date: Nov 2003
Posts: 9
Re: can't solve weird ODBC dbase Driver error

What kind of DB is it? I know that some .dbf files only allow an ODBC connection if the number of fields in the table is less than 255. This criteria may also include Joins...so if the sum of all the fields in your joined tables is greater than 255, you may see a problem...This is just a shot in the dark.
Reply With Quote
  #4 (permalink)  
Old 03-30-04, 02:06
Jigneshss Jigneshss is offline
Registered User
 
Join Date: Mar 2004
Posts: 8
Re: can't solve weird ODBC dbase Driver error

Foxpro (if dos version or below 3.0) does not support mulitple join queries.


Quote:
Originally posted by stauf
I'm doing queries on .dbf files.
When I have 5 inner join clause
there is this error

-2147467259 (80004005)
[Microsoft][ ODBC dbase Driver ] Unexpected error from external database driver
If I run this query in Acces or in Paradox there's no problem and the data comes out (select statement)

I tried two connection strings
conADO.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=""DSN=dBASE Files;DBQ=" & strDatabaseImos & ";DefaultDir=" & strDatabase & ";DriverId=533;MaxBufferSize=2048;PageTimeout= 5;"" "

and this one
conADO.ConnectionString = "Driver={Microsoft dBASE Driver (*.dbf)}; DriverID=277; Dbq=" & strDatabase & ";"


the same error came out.

I look in google and msdn and find nothing interresting.
Somebody got an idea ? or need more information ?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On