The Adventures of a SQL Server DBA
Tips on T-SQL, SQL Server DBA stuff, and more!
Tuesday, January 4, 2011
Randomly Order a Result Set in SQL Server
SELECT *
FROM myTable
ORDER BY NEWID()
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment