SqlCommand cmd = new SqlCommand("select name from nametable where ID='1234'", conn);
conn.Open();
string customName = (string)cmd.ExecuteScalar();