Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a unique key to be used across tables
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00955413
Message ID:
00956069
Vues:
11
Hi Kevin,

Why don't you let SQL Server to do this for you?
Make CurrTransNo column identity.
All that you will need to is to insert a new record and to call @@IDENTITY system function.
Yes, this approach has the disadvantage that the table will grow, but you can delete unused entries at any time.

Regards,
Venelina Jordanova

Outsourcing IT Services Ltd.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform