tags:

views:

26

answers:

1

how to use update query in web service wethod

+2  A: 

Your web service method would call an update query just like any other method.

using(SqlConnection conn = new SqlConnection(connectionString))
{
    conn.Open();

    SqlCommand command = new SqlCommand("update field1 from Table where rowId = 7", conn);

    command.ExecuteNonQuery();
}
Justin Niessner

related questions