Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete Relation Programmatically
Message
De
30/06/2005 17:12:23
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
30/06/2005 16:49:32
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
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 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01027883
Message ID:
01027900
Vues:
16
>I'm getting this error when tring to remove a table from a database programmatically. How do I delete the relation in code so I can remove the table? This whole database container, back links, front links, belongs to crap is killing me. This routine was supposed to take about 4 hours and it's been 3 days. All I'm trying to do is copy a source database and tables using the COPY TO command and it's been a nightmare. Almost there, but everytime I think that, another one of these errors bites me in the patootie.
>
>
>
>Table "name" is referenced in a relation (Error 1577)You cannot remove a table from a database if that table is involved in a relation.
>
>Delete the relation first.
>
>
you need
Alter table {table} DROP FOREIGN KEY TAG {tag name}

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform