5.5 Deleting Records in a Database

Table of Contents Previous Next


5 Using the .NET Connector : 5.5 Deleting Records in a Database

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:

5 Using the .NET Connector : 5.5 Deleting Records in a Database

Table of Contents Previous Next