Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Strange query error

 
   Database Forums (Home) -> Paradox RSS
Next:  Date filters in Excelfor items in the Filter area..  
Author Message
Joseph Misko

External


Since: Nov 26, 2008
Posts: 8



(Msg. 1) Posted: Wed Nov 26, 2008 12:41 pm
Post subject: Strange query error
Archived from groups: comp>databases>paradox (more info?)

I have a QBE file that will run fine under many circumstances, but when
there is more data in the first table (the second table is not changing
right now), then the query errors. The actual query is pasted below from the
QBE file.

1. In code, the return value is false with no additional information on the
stack.
2. When run directly from ProView, it gives error "Expecting a column
separator in table header" (immediately, the query does not even begin to
run).
3. When opened in design view and run, the query begins to execute and the
progress bar displays for about 10 full seconds and then it gives error
"Corrupt file - other than header."

I am not able to make sense of this situation, but if anyone else has
experienced something similar to this and has a suggestion, I would
appreciate it. Neither of these files are corrupt.

Many thanks,
Joe

Query

:PRIV:Whs1.db | JobNum | JobKey | JobFgKey |
| Check | Check _partjk!, _prmjk!, _rawmatjk! | Check |

:PRIV:Whs1.db | PartNum | PrmNum | RawMatNum |
| Check _partdim! | Check _prmdim! | Check _rawmatdim! |

JobItem.DB | JobKey | ItemNum | Thickness |
| _partjk | _partdim | Check as PartThickness |
| _prmjk | _prmdim | Check as PrmThickness |
| _rawmatjk | _rawmatdim | Check as RawMatThickness |

EndQuery

 >> Stay informed about: Strange query error 
Back to top
Login to vote
Jim Giner

External


Since: Mar 14, 2008
Posts: 7



(Msg. 2) Posted: Wed Nov 26, 2008 1:27 pm
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

first off - there is no answer table mentioned. Did you 'type' this up
manually?
"Joseph Misko" wrote in message

>I have a QBE file that will run fine under many circumstances, but when
>there is more data in the first table (the second table is not changing
>right now), then the query errors. The actual query is pasted below from
>the QBE file.
>
> 1. In code, the return value is false with no additional information on
> the stack.
> 2. When run directly from ProView, it gives error "Expecting a column
> separator in table header" (immediately, the query does not even begin to
> run).
> 3. When opened in design view and run, the query begins to execute and the
> progress bar displays for about 10 full seconds and then it gives error
> "Corrupt file - other than header."
>
> I am not able to make sense of this situation, but if anyone else has
> experienced something similar to this and has a suggestion, I would
> appreciate it. Neither of these files are corrupt.
>
> Many thanks,
> Joe
>
> Query
>
> :PRIV:Whs1.db | JobNum | JobKey | JobFgKey |
> | Check | Check _partjk!, _prmjk!, _rawmatjk! | Check |
>
> :PRIV:Whs1.db | PartNum | PrmNum | RawMatNum |
> | Check _partdim! | Check _prmdim! | Check _rawmatdim! |
>
> JobItem.DB | JobKey | ItemNum | Thickness |
> | _partjk | _partdim | Check as PartThickness |
> | _prmjk | _prmdim | Check as PrmThickness |
> | _rawmatjk | _rawmatdim | Check as RawMatThickness |
>
> EndQuery

 >> Stay informed about: Strange query error 
Back to top
Login to vote
Jim Giner

External


Since: Mar 14, 2008
Posts: 7



(Msg. 3) Posted: Wed Nov 26, 2008 1:33 pm
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"missing answer table"

That's definitely the problem - you left off the "answer: :priv:answer.db"
clause (or wherever you want it to go). Once I added that - my only error
is I don't have your tablenames available.
 >> Stay informed about: Strange query error 
Back to top
Login to vote
Jim Moseley

External


Since: Aug 28, 2006
Posts: 88



(Msg. 4) Posted: Wed Nov 26, 2008 1:36 pm
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Joseph,

Bertil recently posted about a similar problem. If you use the 'Check' option,
you cause an Order By and a Sort, IIRC. This might run into the limits of
the table size. Does it work with 'CheckPlus'?

What is your default BDE block size (of your answer table)?
How many rows are in :priv:Whs1.db?


Jim Moseley
 >> Stay informed about: Strange query error 
Back to top
Login to vote
Joseph Misko

External


Since: Nov 26, 2008
Posts: 8



(Msg. 5) Posted: Wed Nov 26, 2008 2:05 pm
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jim Giner" wrote in message

> first off - there is no answer table mentioned. Did you 'type' this up
> manually?

I did not type it manually. Copied and pasted from file.
 >> Stay informed about: Strange query error 
Back to top
Login to vote
Joseph Misko

External


Since: Nov 26, 2008
Posts: 8



(Msg. 6) Posted: Wed Nov 26, 2008 2:06 pm
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jim Giner" wrote in message

> "missing answer table"
>
> That's definitely the problem - you left off the "answer: :priv:answer.db"
> clause (or wherever you want it to go). Once I added that - my only error
> is I don't have your tablenames available.

That seems to have fixed the error I was getting when run interactively. You
can add an answer table below the opening Query statement. I am still
getting the other error.
 >> Stay informed about: Strange query error 
Back to top
Login to vote
Joseph Misko

External


Since: Nov 26, 2008
Posts: 8



(Msg. 7) Posted: Wed Nov 26, 2008 2:32 pm
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jim Moseley" wrote in message

>
> Joseph,
>
> Bertil recently posted about a similar problem. If you use the 'Check'
> option,
> you cause an Order By and a Sort, IIRC. This might run into the limits of
> the table size. Does it work with 'CheckPlus'?

I was not able to get the query to work with CheckPlus, either with all
fields changed from Check to CheckPlus or else just the JobItem fields.

> What is your default BDE block size (of your answer table)?

I do not get an answer table, but the default block size of the BDE is 4096.

> How many rows are in :priv:Whs1.db?

That table has 115 rows and JobItem.DB has 1050412 records. The issue is
that if Whs1.db has only a single JobKey in all of its rows, the query will
run successfully. When a second JobKey is added, then the error occurs. I do
not believe table size is an issue here because this query will only use a
small number of the JobItem records, at most a few hundred.

I am now getting more interactive information since I added the answer
table. "Corrupt file - other than header." Table: JobItem.db
File:JobItem.px. However, the PX file is not corrupt. It has been rebuilt
with both Chimney Sweep and alternately with TUtility. A TUtility verify
reports a BTree error, and Chimney Sweep reports no errors. I do not believe
this table is corrupted because the data is heavily used elsewhere and there
is no erroneous data reported. I think this is related to this query.

Thanks,
Joe
 >> Stay informed about: Strange query error 
Back to top
Login to vote
Joseph Misko

External


Since: Nov 26, 2008
Posts: 8



(Msg. 8) Posted: Wed Nov 26, 2008 3:01 pm
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Okay, maybe I need to take that back on the table not being corrupted. I am
doing some further querying and possibly we are running into "corruption".
However, it is not corruption that is sorted out by either of the repair
utitlities. Because the indexing is not working, I am thinking that this is
because there is a string as part of the index. Would anyone have any hard
evidence that if we went to long integers instead of strings, this would
clear up? I remember something from a few years ago on strings in keys, but
there was something about it possibly being limited to secondary indexes.

Many thanks and happy thanksgiving,
Joe
 >> Stay informed about: Strange query error 
Back to top
Login to vote
Robert Wiltshire

External


Since: May 08, 2005
Posts: 5



(Msg. 9) Posted: Thu Nov 27, 2008 3:46 am
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What about making this a 2 query process.

Query #1
Using a job key or keys,
simply do a one table query from jobitems,
and rename answer table to temp table.

Then query #2
Do your 2 table query that you do now...
but do not link 3 times into jobItems that has 1M plus records,
but link to your temp table that was created in Query #1.

Perhaps this could avoid errors that surface when you have multiple job
keys.

Good luck
Robert Wiltshire
 >> Stay informed about: Strange query error 
Back to top
Login to vote
Steven Green

External


Since: Nov 09, 2007
Posts: 110



(Msg. 10) Posted: Thu Nov 27, 2008 7:05 am
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> the default block size of the BDE is 4096.

> JobItem.DB has 1050412 records.

> I do not believe table size is an issue

you're kidding, right?

how big is that million-record table?.. why do you still have that tiny
block size?.. and most important, do you realize what happens to the size of
an answer table with an outer-join, or something like "not" in the
parameters?

so, do two things.. do the repair to rule out corruption, and make a bigger
table to rule out size.. then get back to us..

--
Steven Green - Myrtle Beach, South Carolina USA

http://www.OasisTradingPost.com

Oasis Trading Post
- Collectibles and Memorabilia
- Vintage and Custom Lego Creations

Diamond Software Group
- Paradox Support & Sales

Diamond Sports Gems
- Sports Memorabilia and Trading Cards
 >> Stay informed about: Strange query error 
Back to top
Login to vote
Joseph Misko

External


Since: Nov 26, 2008
Posts: 8



(Msg. 11) Posted: Thu Dec 18, 2008 7:10 pm
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Robert Wiltshire" wrote in message

>
> What about making this a 2 query process.

Great suggestion. I did that. It seems we are finding that still not all
information from the job table is pulled. Wish I had better information on
what is causing this error. Thanks for the suggestion, --Joe

> Query #1
> Using a job key or keys,
> simply do a one table query from jobitems,
> and rename answer table to temp table.
>
> Then query #2
> Do your 2 table query that you do now...
> but do not link 3 times into jobItems that has 1M plus records,
> but link to your temp table that was created in Query #1.
>
> Perhaps this could avoid errors that surface when you have multiple job
> keys.
>
> Good luck
> Robert Wiltshire
>
>
>
>
>
 >> Stay informed about: Strange query error 
Back to top
Login to vote
Joseph Misko

External


Since: Nov 26, 2008
Posts: 8



(Msg. 12) Posted: Thu Dec 18, 2008 8:02 pm
Post subject: Re: Strange query error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Steven Green" wrote in message

>> the default block size of the BDE is 4096.
>
>> JobItem.DB has 1050412 records.
>
>> I do not believe table size is an issue
>
> you're kidding, right?

Well, I was not trying to be kidding! 8^D

I have read a number of reports of Paradox tables with over a million
records. This table has only a few fields and only the item number is
non-numeric. The table is currently

> how big is that million-record table?

The DB file is 114 MB.

> .. why do you still have that tiny block size?

Although the BDE block size is 4K, this table is 16K (we changed it a couple
of years ago). It is only 10% full according to the size calculations I
have.

Fields: 14
Record Size: 112 bytes
Block Size: 16K
Records per Block: 146
Table Version: 7

> .. and most important, do you realize what happens to the size of an
> answer table with an outer-join, or something like "not" in the
> parameters?

I do understand how these types of criteria work. There are no "not"
parameters. Nearly all of these records have a match, so the outer join
will be identical to the inner join 99% of the time.

> so, do two things.. do the repair to rule out corruption, and make a
> bigger table to rule out size.. then get back to us..

The table has been rebuilt in both Chimney Sweep and TUtility. CS reports no
errors or issues. TU keeps reporting a BTree error.

I am not really spotting the error. My best lead is that the alpha field in
the primary key is some type of Paradox limitation.

Any other suggestions? Thanks either way! --Joe

>
> --
> Steven Green - Myrtle Beach, South Carolina USA
>
> http://www.OasisTradingPost.com
>
> Oasis Trading Post
> - Collectibles and Memorabilia
> - Vintage and Custom Lego Creations
>
> Diamond Software Group
> - Paradox Support & Sales
>
> Diamond Sports Gems
> - Sports Memorabilia and Trading Cards
>
 >> Stay informed about: Strange query error 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Pdox9 Query Error: Invalid File Name - I have added the records from six files into one receiving file now named recd.db; with each addition I changed the name of the receiving file to reflect the additional records. Now, I get "Invalid File Name" error when I try to run a Changeto ...

SQL Query Help - Howdy all. Have a Pdox qbe that has been converted to SQL that sums transactions where transaction date is > than the user selected date (EfftvDate). However, it returns nothing/blank entry for both fields - acutally 0.00 in FutureTrans when using ...

What is the best way to do this query? - Each patient has a table called Clininfo.db 3 key fields and a field Called ClinicalCode (also keyed) Each patient can have anywhere from 0 to max # of choices available (36 I think) to put in each table I want to be able to query the ClinInfo table for...

Delete Query... - I have a database with a field named PULLED? that is either a "Y" or blank. How do I write code to go through and delete all the people with a "Y" in the PULLED? field, and put them into a new database in the same directory called ...

All inclusive query...? - Howdy, I use P9. This is certainly in the category of "I should know how to do this", but... Suppose I have a table that has a field of first names: Joe Sue Steve Joe Ellie If I run a query on those, the ANSWER.DB will be: Joe Sue Steve ...
   Database Forums (Home) -> Paradox All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]