você tentou
myCommand.Parameters.AddWithValue("@studynumber", studynumber);
ao invés de:
myCommand.Parameters.AddWithValue("@study", studynumber);
myCommand.Parameters.AddWithValue("@studynumber", studynumber);
myCommand.Parameters.AddWithValue("@study", studynumber);