Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to populate default values for a new record?
Message
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:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01474230
Message ID:
01474288
Vues:
41
>
>SELECT OBJECT_NAME(syscolumns.Id) AS Table_Name,
>       syscolumns.name AS Column_Name,
>       OBJECT_NAME(syscomments.id) AS Default_Constraint_Name
>FROM syscomments 
>INNER JOIN syscolumns ON syscomments.id = syscolumns.cdefault AND syscolumns.cdefault > 0
>ORDER BY OBJECT_NAME(syscolumns.Id),syscolumns.name 
>
Thanks, this works and shows me lots of defaults in the database.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform