dbTalk Databases Forums  

Query "changeto" doesn't work in Paradox 8

comp.databases.paradox comp.databases.paradox


Discuss Query "changeto" doesn't work in Paradox 8 in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Frank Boelsen
 
Posts: n/a

Default Re: Query "changeto" doesn't work in Paradox 8 - 08-04-2007 , 10:19 AM






Quote:
the values meet the rules. "Nr" is a text field (A - 18) and "Pos" small
Integer field (I).
Sorry, I wanted to say: "Pos" is short integer (S), not (I).

Frank




Reply With Quote
  #12  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Query "changeto" doesn't work in Paradox 8 - 08-04-2007 , 10:50 AM






Frank,
I don't know whether this touches your problem, however, I've seen in the
query-fieldorder-clause a tablename with probably the German umlaut for ""
is substituted by a "" depending of the used character-set (OEM or ANSI):
Quote:
FIELDORDER: Kuenstler.DB->"KName", Knstler.DB->"Musikrichtung",
Only a hint.

Egbert
--
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mrfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com




Reply With Quote
  #13  
Old   
Tony McGuire
 
Posts: n/a

Default Re: Query "changeto" doesn't work in Paradox 8 - 08-04-2007 , 12:26 PM




Quote:
Nr A 18 *
D A 1 *
S A 1 *
Pos S *
So you are changing the value of a field in the primary compound key?


--
------------------------------
Tony McGuire




Reply With Quote
  #14  
Old   
Bertil Isberg
 
Posts: n/a

Default Re: Query "changeto" doesn't work in Paradox 8 - 08-04-2007 , 03:20 PM



Frank

What is :PRIV:FEHLALTB ? Is that what in English is ERRCHANGED?

Then there is a problem with your changeto query!! The changes are not
allowed. What happens if you change it manually, by editing one row. Is it
allowed ? If not, what message do you get?



--
Bertil Isberg - CTECH
Paradox buglist:
online: http://hem.bredband.net/bertilisberg/




Reply With Quote
  #15  
Old   
Steven Green
 
Posts: n/a

Default Re: Query "changeto" doesn't work in Paradox 8 - 08-04-2007 , 04:12 PM



Quote:
What is :PRIV:FEHLALTB ? Is that what in English is ERRCHANGED?
that, plus the keyed field, would seem to be the heart of the matter..

good thing they aren't asking us to answer Chinese questions (g)

--
Steven Green - Waldorf Maryland USA

Diamond Software Group
http://www.diamondsg.com/main.htm
Paradox Support & Sales

Diamond Sports Gems
http://www.diamondsg.com/gemsmain.htm
Sports Memorabilia and Trading Cards
"Bertil Isberg" <ctech (AT) corel (DOT) ca> wrote

Quote:
Frank

What is :PRIV:FEHLALTB ? Is that what in English is ERRCHANGED?

Then there is a problem with your changeto query!! The changes are not
allowed. What happens if you change it manually, by editing one row. Is it
allowed ? If not, what message do you get?



--
Bertil Isberg - CTECH
Paradox buglist:
online: http://hem.bredband.net/bertilisberg/






Reply With Quote
  #16  
Old   
Frank Boelsen
 
Posts: n/a

Default Re: Query "changeto" doesn't work in Paradox 8 - 08-05-2007 , 08:00 AM



Quote:
What is :PRIV:FEHLALTB ? Is that what in English is ERRCHANGED?

Then there is a problem with your changeto query!! The changes are not
allowed. What happens if you change it manually, by editing one row. Is it
allowed ? If not, what message do you get?
:PRIV:FEHLALTB ist the error table I get after the query (in english the
name maybe :PRIV:ERROROLDB).

Yes, I think also, that the changes are not allowed; but why? If I edit the
records manually, the changes are accepted - no problem.




Reply With Quote
  #17  
Old   
Steven Green
 
Posts: n/a

Default Re: Query "changeto" doesn't work in Paradox 8 - 08-05-2007 , 09:12 AM



never, never, never do a changeto or an uncontrolled scan on the key fields
of a table.. what you get will NOT be what you expected, in many cases.. in
this case, you're creating key violations / duplicate records, because the
changes are being made one record at a time..

make a copy of the table, unkey it, make the changes, then rekey and reindex
when you're done..

--
Steven Green - Waldorf Maryland USA

Diamond Software Group
http://www.diamondsg.com/main.htm
Paradox Support & Sales

Diamond Sports Gems
http://www.diamondsg.com/gemsmain.htm
Sports Memorabilia and Trading Cards



Reply With Quote
  #18  
Old   
Bertil Isberg
 
Posts: n/a

Default Re: Query "changeto" doesn't work in Paradox 8 - 08-05-2007 , 10:51 AM



Frank

I have a couple of cases with changeto queries in my buglist. Maybe this one
could be your case:

Under certain circumstances, you cant use a changeto query on a table that
is a referential integrity child. The changes are written to :Priv: ErrChg.
This will happen when you try to change one of the key fields in the child
table and the table has a compound primary key.


--
Bertil Isberg - CTECH
Paradox buglist:
online: http://hem.bredband.net/bertilisberg/



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.