ssql="SELECT TOP 10 * FROM [someTable] ORDER BY NEWID()"
The key here is "ORDER BY NEWID()"
The "Ten Commandments", if you will, of .NET development. Definitely not limited to ten, nor groundbreaking by any means, this blog emphasizes simple code that any .NET developer should know; without the fluff and bloated code examples. "Just show me how to..."
No comments:
Post a Comment