Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for the existence of a particular field
Message
 
À
20/01/2006 00:21:00
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
01088768
Message ID:
01088813
Vues:
7
If it is for a SQL server table, you can query the SysObjects and SysColumns tables.
select so.name, sc.name 
from sysobjects AS SO
inner join syscolumns AS SC
ON so.id = sc.id
where SO.xtype = 'u'
and so.name = 'PortfolioDtl'  /* your table name */
and sc.name = 'ClosingDate'   /* your field name */
>Is there a way to check for the existence of a particular field in a table without having to do a SQL select on that table?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform