<Table1>
<ixEducationalAttainmentType>1</ixEducationalAttainmentType>
<sEducationalAttainmentType>Elementary</sEducationalAttainmentType>
<sEASchool>CWSC</sEASchool>
<sEAYear>1990</sEAYear>
<sEADegree>ELEM</sEADegree>
</Table1>
<Table1>
<ixEducationalAttainmentType>2</ixEducationalAttainmentType>
<sEducationalAttainmentType>High School</sEducationalAttainmentType>
<sEASchool>ASJ</sEASchool>
<sEAYear>1994</sEAYear>
<sEADegree>HS</sEADegree>
</Table1>
<Table1>
<ixEducationalAttainmentType>3</ixEducationalAttainmentType>
<sEducationalAttainmentType>College</sEducationalAttainmentType>
<sEASchool>SLU</sEASchool>
<sEAYear>1998</sEAYear>
<sEADegree>ECE</sEADegree>
</Table1>
<Table1>
<ixEducationalAttainmentType>4</ixEducationalAttainmentType>
<sEducationalAttainmentType>Others</sEducationalAttainmentType>
<sEASchool>STI</sEASchool>
<sEAYear>1999</sEAYear>
<sEADegree>CLIP</sEADegree>
</Table1>
</ea>
using (SqlConnection conn = new SqlConnection(@”Server=.\SQLEXPRESS;Database=mydb;Trusted_Connection=True;”))
{
using (SqlCommand cmd = new SqlCommand(“rproc_NewMember”, conn))
{
//set command type as stored procedure
cmd.CommandType = CommandType.StoredProcedure;
//add the parameter
cmd.Parameters.AddWithValue(“@EducationalAttainment”, xml);
//open connection
conn.Open();
//execute
cmd.ExecuteNonQuery();
}
}