Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create random number
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01545107
Message ID:
01545117
Vues:
36
>>>I want/need to create just one random number for the current row, when Inserting a record. This is not a PK field but still, for business purpose, needs to have a unique entry. So I don't think that I would need to use checksum().
>>>And I will see the article by Pinal Dave; I read a lot of his on-line articles; he is very prolific.
>>>Thank you.
>>
>>In this case RAND() function should work just fine to generate a single random number.
>
>Thank you.

You're welcome.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform