Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generate Reference number
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01349522
Message ID:
01352205
Vues:
26
This message has been marked as a message which has helped to the initial question of the thread.
Naomi,

I am new sql server but am working with people with years of expirience so I assume what they do is best practice. We use IDENTITY data type for PK in our tables.


>Hi everybody,
>
>I have two questions.
>
>1. We would like to move VFP database to SQL Server. In VFP we used "GUID" like PKs (not exactly the same GUIDs as in SQL Server, but some manipulations on GUIDs to create only letters and numbers).
>
>What should we use in SQL Server for our PKs? Should we try to use existing PKs and just for new records use uniqueidentifier? Or should we try to keep existing PKs for reference only and switch to Identity fields?
>
>2. We would like to generate unique Reference number but in a format convenient for the user. What should we try to do for this?
>
>Thanks a lot in advance.
Mathias Banda

Time is longer than a rope.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform