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
2009-11-12 15:29:14