Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting 14 random records
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01382524
Message ID:
01382552
Vues:
49
>>>select top 14 * from myTable order by NewID()
>>
>>Thanks, this works.
>>
>>I assume this will always be optimized even on a two million records table.
>
>No it's not. IIRC, I posted improved version in UT magazine a while ago but the link http://www.utmag.com/ doesn't work.

Sergey,

You can check all your articles from your profile. I looked through all your articles, but I don't know which one did you mean.

I found this http://www.levelextreme.com/ViewPageArticle.aspx?Session=2B6E674575657847374E633D205243356D6B704B4E464E554E726474574E524D4273413D3D not sure if related.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform