Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Manual Test of Database integrity
Message
De
29/09/2008 10:21:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01351481
Message ID:
01351484
Vues:
25
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform