Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server NewID's
Message
De
01/06/2001 03:53:35
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
31/05/2001 19:56:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00513516
Message ID:
00513610
Vues:
15
>Hi, everybody!
>
>What is best way to retrieve NewID on a SQL Table:
> * Identity Fields?
> * A Meta-Table with the last ID generated for each one of my tables?
> * A SELECT MAX(ID) Statement?
>
> Or there's some other?
>
> I'm developing a N-Tier application and I'm using ADO RecordSets to pass data through layers...
>
> Any information about this issue is of extreme importance for me.
>
> Thanks in Advance!

Hi Claudio in my opinion the best is idetity fields in this way you don't have amy problem managing the id fields and after an insert if you need the id generated the do a SELECT @@IDENTITY to retrive the value of the id.
Alexandre Palma
Senior Application Architect
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform