Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Im planning to make an entrance examination windows application in vb.net,VS2012, and i want to randomly select questions from database(i use ms sql server 2005 express) and not repeating every question. I have a limited idea in using binding navigator... is it possible to randomly select using binding navigator or if not do you have any ideas, suggestions,tutorials or articles that do you want to share? What s the best way/solutions to do this?

Thank you in advance!
Posted

1 solution

Often (with SQL Srver anyway), you can sort the rows by NEWID() to get a fairly random order.
But, chances are, you don't want it to be completely random.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900