You can use the ExecuteNonQuery() method of EDBCommand to delete records from a database stored on an Advanced Server host with a DELETE statement.
In the example that follows, the DELETE command is stored in the variable strDeleteQuery. The code passes the employee number to the Delete command (specified by: EmpNo). The command is then executed using the ExecuteNonQuery() method. The following example deletes the employee inserted in the previous example:
Save the sample code in a file in a web root directory named:
deleteEmployee.aspx
To invoke the sample code, open a web-browser, and browse to: