Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maintaining SQL tables from VFP
Message
De
12/01/2000 10:54:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Maintaining SQL tables from VFP
Divers
Thread ID:
00316986
Message ID:
00316986
Vues:
56
I am a coding database upgrade program to alter table structure in SQL Server. Here's what I have to do:
1) Determine default constraint name for a given column
2) Drop the constraint
3) Drop the column

It appears that a constraint may be used by multiple columns. Is this true, and if so, how do I disassociate the column from the default constraint?

Also, to determine the constraint name am using sp_helpconstraint and
LOCATE "DEFAULT on column"+lcColumnName. Is there a better way?

Thanks
-Brett
Répondre
Fil
Voir

Click here to load this message in the networking platform