Board index » delphi » create referential integrity for Paradox tables in SQL
neeva
![]() Delphi Developer |
Tue, 25 Mar 2003 03:00:00 GMT
|
neeva
![]() Delphi Developer |
Tue, 25 Mar 2003 03:00:00 GMT
create referential integrity for Paradox tables in SQLHello, Does anyone know if it is possible to create referential integrity for Paradox tables in SQL? I cannot find it in theh local SQL help. What's the use of being able to create tables in SQL if you can't define constraints? I want to be able to generate my database through SQL scripts. Thanx in advance, Neeva |
Roman Krejc
![]() Delphi Developer |
Tue, 25 Mar 2003 03:00:00 GMT
Re:create referential integrity for Paradox tables in SQLLocal SQL does not support creating constraints (either referential integrity, or Default,Min,Max values for the field). You have to resort to dbiDoRestructure. Please keep in mind that Paradox is not SQL database, so you can't expect that much from SQL. -- Roman (please remove 'stopspam' in header when replying) mail: i...@rksolution.cz URL: www.rksolution.cz neeva <maarten.vl...@no-spam.wanadoo.nl> p1e v diskusnm Quote
use of being able to create tables in SQL if you can't define constraints? I want to be able to generate my database through SQL scripts. Quote
|
Team
![]() Delphi Developer |
Tue, 25 Mar 2003 03:00:00 GMT
Re:create referential integrity for Paradox tables in SQLYou cannot do it in SQL. I beleave there is an example using the BDE API call DbiDoRestructure at www.borland.com/devsupport/bde/bdeapiex . -- |
Tomislav Kard
![]() Delphi Developer |
Fri, 28 Mar 2003 03:00:00 GMT
Re:create referential integrity for Paradox tables in SQLHi Roman! Quote>Local SQL does not support creating constraints it doesn't make any sense that programmers who wrote local SQL didn't take that into the syntax. tomi. |
Sympatic
![]() Delphi Developer |
Fri, 28 Mar 2003 03:00:00 GMT
Re:create referential integrity for Paradox tables in SQLQuote"Tomislav Kardas" <nomail@sorry> wrote in message Quote> Hi Roman! deletes ) and since we had database integrity problems with large databases when using referential integrity we choose not to use it. We have very good success with multiple users and large databases. Garry Kernan |
neev
![]() Delphi Developer |
Sat, 29 Mar 2003 03:00:00 GMT
Re:create referential integrity for Paradox tables in SQLQuote>Since paradox only partially implements referential integrity ( no cascade So you create code to ensure database integrity? Neeva |
Sympatic
![]() Delphi Developer |
Sat, 29 Mar 2003 03:00:00 GMT
Re:create referential integrity for Paradox tables in SQLYes It really does not amount to alot of work for our application. Some of our data relationships are effectively object oriented and do not Garry Kernan Quote"neeva" <maarten.vl...@no-spam.wanadoo.nl> wrote in message Quote
|
Roman Krejc
![]() Delphi Developer |
Sun, 30 Mar 2003 03:00:00 GMT
Re:create referential integrity for Paradox tables in SQLHi Tomi, Quote> Since those constraints are already supported by paradox file format and Ref.Int is a Paradox specialty, it does, IMHO, make sense :-) Roman |
Tomislav Kard
![]() Delphi Developer |
Sun, 30 Mar 2003 03:00:00 GMT
Re:create referential integrity for Paradox tables in SQLHi Sympatico! On Mon, 9 Oct 2000 11:04:17 -0600, "Sympatico" Quote<gker...@sk.sympatico.ca> wrote: fact don't prove anything, it's just a feature you might or not want to happen. Quote>and since we had database integrity problems with large databases when using don't obey rules you made yourself when creating database. Suppose you have a master and detail tables, so if you don't put a foreign key constraint for detail table on master key it can happen that you have detail records without the master one. This may cause you less trouble in a bad design, but certainly is not a way to go. Quote> We have very good success tomi. |
Tomislav Kard
![]() Delphi Developer |
Sun, 30 Mar 2003 03:00:00 GMT
Re:create referential integrity for Paradox tables in SQLHi Roman! On Wed, 11 Oct 2000 11:55:09 +0200, "Roman Krejci" Quote<Kre...@stopspam.mbox.cesnet.cz> wrote: you can create tables, then there is a lot of sense to complete the work properly and not let it be unfinished. That's my point with or without sense od making Local SQL in the first tomi. |
Sympatic
![]() Delphi Developer |
Sun, 30 Mar 2003 03:00:00 GMT
Re:create referential integrity for Paradox tables in SQLQuote> >Since paradox only partially implements referential integrity ( no referential integrity. Typical Microsoft. (and yes I do know about the Microsoft / Sybase history) Quote> >and since we had database integrity problems with large databases when a bad design nor that we do not know how referential integrity works both from relational set theory and practical use. Do realize that dbGrids and master detail relationships automatically supply proper foreign key values when appending records at the GUI level. We also choose NOT to edit PK values as that practice with paradox can Paradox uses a paging scheme and stores the PK value of the first record For us this this is simply one of the dozen or so rules we have tacked We collect large amounts of data in vehicles and then batch process this Many c/s people are content with 200 records per second - this simply does Our core databases are composed of around 20 tables and are all related (at Quote> > We have very good success |
1. How to create referential integrity in Paradox 5.0 Tables
2. SQL Create on Paradox: referential integrity?
3. How to create referential integrity when creating tables at runtime
4. Referential integrity on Paradox tables
5. Creating Paradox8 tables with referential integrity
6. Problem: Cascading Referential Integrity with Paradox tables
7. Runtime creation of Paradox tables and Referential Integrity.
8. Paradox tables and referential integrity