i have a problem... i'm developing automated exam for my project.. i don't have idea when creating exam and get random questions from database and display in textBox. please help...
i'm so stress! :(
Regards,
Piatoz
Create Exam and Random questions from database.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Shweta LodhaRank #31 · 39.8K reputationPosted Nov 4, 2014, 4:10 PM EST
Below link will give you an idea on how to get random records from database:
http://msdn.microsoft.com/en-us/library/cc441928.aspx
Joginder BangerRank #360 · 7K reputationPosted Nov 4, 2014, 8:06 PM EST
select * from tablename order by newid()
.
newid() is a predefined function in sql server