dbTalk Databases Forums  

Flaky SQL Results

comp.databases.btrieve comp.databases.btrieve


Discuss Flaky SQL Results in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Pietrzak
 
Posts: n/a

Default Flaky SQL Results - 07-09-2004 , 01:29 PM






I have a pervasive 2000 db. In this db there is a table. I have run
into the following situation and would appreciate some help.

For the sake of simplification:

The table has three rows

The rows have keys of "A" "B" and "C"

If I do a query looking for the exact value of "B", the query returns
an empty found set.

If I do a query looking for everything > "A" and < "C", the query
returns a found set that includes the "B" record in question.

If I do a query looking for the exact value of "B" and everything >
"A" and < "C", I get an empty found set.

If I do a query looking for everything > "A" and <"C" and the exact
value of "B", I get the found set that includes the "B" record in
question.

If I do a query with no conditions, I get "A" "B" and "C" in the found
set.

The queries are run through ODBC and a delphi program, as well as ODBC
through Crystal Reports.

The index for the table has been rebuilt, but that did not resolve the
issue. Any ideas on what I might want to try next?

Tom Pietrzak

Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: Flaky SQL Results - 07-11-2004 , 11:04 AM






Check to see that your DDF definitions match the Btrieve definitions with
the Check Database Wizard in the PCC. Odds are good that they do not
match for this file.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: August, 2004: See our web site for details!


Tom Pietrzak wrote:

Quote:
I have a pervasive 2000 db. In this db there is a table. I have run
into the following situation and would appreciate some help.

For the sake of simplification:

The table has three rows

The rows have keys of "A" "B" and "C"

If I do a query looking for the exact value of "B", the query returns
an empty found set.

If I do a query looking for everything > "A" and < "C", the query
returns a found set that includes the "B" record in question.

If I do a query looking for the exact value of "B" and everything
"A" and < "C", I get an empty found set.

If I do a query looking for everything > "A" and <"C" and the exact
value of "B", I get the found set that includes the "B" record in
question.

If I do a query with no conditions, I get "A" "B" and "C" in the found
set.

The queries are run through ODBC and a delphi program, as well as ODBC
through Crystal Reports.

The index for the table has been rebuilt, but that did not resolve the
issue. Any ideas on what I might want to try next?

Tom Pietrzak


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.