Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning PK from Insert Statement
Message
 
À
26/01/2006 10:41:55
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB.NET 1.1
Database:
MS SQL Server
Divers
Thread ID:
01090504
Message ID:
01090520
Vues:
7
You can give an alias to the value
select scope_identity AS Counter
>Thank you... it worked.
>
>Just out of curiosity, what column name would it be in the reader? I was able to get at it using an index of 0, but I couldn't get at it by using "scope_identity" and "counter" (which is the field name of the PK). Thanks a lot!
>
>MAC
É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