Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting 14 random records
Message
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01382524
Message ID:
01382552
Views:
50
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform