Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding Referential Integrity
Message
From
31/07/2001 17:41:22
 
 
To
31/07/2001 17:20:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00538041
Message ID:
00538056
Views:
13
>I am doing a re-design of a legacy VFP 5.0 application using VFP 6.0 and Visual FoxExpress 6.3. I have created a new database that contains only local views of the legacy database. I have also written a program that will modify the legacy database by adding a few fields, indexes, etc.
>
>The legacy system didn't enforce referential integrity. The legacy database doesn't have any persistent relationships. I would like to add code to my database modification program which will add those relationships and modify the database so that it will enforce referential integrity.
>
>How do I do this programmatically? Does anybody have experience with this?

What I suggest you do is to create a new database with a few tables and manually create a few different persistent relationships with the different behaviors you'll be wanting. This can be a scratch database - it doesn't need to be the real database.

Then run GenDBC() on it ( It's under the Home()+"Tools\GenDBC" directory) and view the output. It will have the code do all of that.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform