Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A strange problem using RAND()
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01244333
Message ID:
01244378
Vues:
24
>>According to BOL: "We recommend that you not use time-dependent functions, such as RAND(), within a NULLIF function. This could cause the function to be evaluted twice and to return different results from the two invocations".
>>My guess is the value that NULLIF() checks is different from the value returned because of that.
>
>Sergey,
>where you found this?
>I read all about RAND() and NULLIF() bud I didn't read anything like that.

I found it in the NULLIF() topic (Remarks) in BOL 2005 online at http://msdn2.microsoft.com/en-us/library/ms177562.aspx. It also present in BOL 2005 on my PC. It's not in BOL 2000, though.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform