Monday, April 23, 2012

SQL Server- Select one (or more) random rows from the DataBase


string query = "SELECT TOP 1 my_row FROM my_table ORDER BY NEWID()";

No comments:

Post a Comment