Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need some advice
Message
 
 
À
30/03/2000 00:10:09
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00348846
Message ID:
00352579
Vues:
23
>I could add a identity field as autoincrement.
>But what happens when I want to insert a backdated entry which has to be sorted datewise in ledger report and the balances calculated in that order.
PMFJI, but all you need to do in this case is insert the record with the correct (backdated) date and order by date in the ledger report and balance algorithm.

The Identity field is used as a unique identifier or primary key. It should not be used to sort anything.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform