Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manual Test of Database integrity
Message
From
29/09/2008 10:21:58
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01351481
Message ID:
01351484
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I have a database with about 200 tables in it. I'd like to create a program that would check if we have orphans and create a report. Do we already have something available for this purpose or how should I create such program?
>
>Thanks a lot in advance.

This should get you started
local aa[1], i, n
n =  adbobjects(aa, 'Relation') && look in the help for the contents

for i = 1 to m.n
  ...
    use table1
    && + ataginfo()
   use table2
  && + ataginfo()
  
 && construct select statement
&& execute select statement

  use in table1
  use in table2

endfor
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform