Fetching a random record from SQL Server - TechRepublic
Question
December 2, 2007 at 10:33 PM
london freelancer

Fetching a random record from SQL Server

by london freelancer . Updated 17 years, 1 month ago

How do I fetch a random record from SQL Server, I want to display data randomly on a page from the database.

I found the in MYSQL we can use something like order by rand() and get the first record. Do we have something similar in SQL Server

Regards,
Freelancer

This discussion is locked

All Comments