Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tools for finding missing Keys in Parent table?
Message
From
02/09/2008 11:50:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Tools for finding missing Keys in Parent table?
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344184
Message ID:
01344184
Views:
60
I am looking for any utilities to automate the process of looking for child records that have missing parent key records.

For instance Job_Line_Item records, that somehow do not have the matching parent key record.

Job_Line_Item.job_num = Job.job_num

Believe it or not, I am ashamed to say that I have found cases where I have Job_Line_Item records that do not have the associated parent record present.

So now I want to check all the Parent-Child schemas that I have, which are many.

All my data is presently is in free tables. I need to clean it up so I can push it up to SQL Server.

So, are there any tools to automate this, or is it just a manual process?

I figure I will want this to be a weekly process, just to make sure I have good data structure in place. That is why I want to have it somewhat automated.

It will also help me discover where this is happening so I can fix my programs to prevent it from happening.
Next
Reply
Map
View

Click here to load this message in the networking platform