Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pull out the PK field for the table
Message
De
12/09/2008 12:39:25
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01347071
Message ID:
01347110
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
>>Hi
>>
>>EXEC sp_pkeys @table_name = tableName
>>
>>
>
>Is it the only way? I want to create a query, how would I use this sp in a query? I'm not on a computer with SQL Server, can't test at the moment.

As far as i know
Insert data returned by sp_pkeys in #temp and use in you query.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform