Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generate Reference number
Message
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Generate Reference number
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01349522
Message ID:
01349522
Vues:
68
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.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform