Possible Duplicate:
SQL Server Random Sort
I guess it sounds stupid but I want to retrieve a few records randomly each time user refreshes the page. is there any Query available for SQL Server 2005 to do that or should I do this in page?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
NEWID() creates a unique value of uniqueidentifier type. Take a look at this.
Hope it helps.