Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INFORMATION_SCHEMA question
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00676242
Message ID:
00676261
Vues:
17
Try
SELECT * FROM INFORMATION_SCHEMA.COLUMNS
	WHERE COLUMNPROPERTY(OBJECT_ID(table_name), column_name, 'IsIdentity') > 0
>I need to query either an INFORMATION_SCHEMA view or system table to determine if a field in a table is an identity field.
>
>
>INFORMATION_SCHEMA.COLUMNS doesn't seem to be the answer (unless I'm reading it wrong...).
>
>Does anyone know if this information can be obtained from a INFORMATION_SCHEMA view?
>
>If not, how should I go about obtaining this information?
>
>Thanks in advance, Al
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform