Feb 22, 2013 03:37 AM|Amy Peng - MSFT|LINK
Please try to refer to the following code:
protected void Button1_Click(object sender, EventArgs e)
SqlConnection con = new SqlConnection("Data Source=localhost;Initial Catalog=WordsDB;Integrated Security=True");
string ss = "select top 1 Word from testtable order by newid()";
SqlCommand cmd = new SqlCommand(ss, con);
Hope it can help.