Table of Contents Previous Next


4 Using the .NET Connector : 4.4 Inserting Records in a Database

You can use the ExecuteNonQuery() method of EDBCommand to add records to a database stored on an Advanced Server host with an Insert command.
In the example that follows, the insert command is stored in the variable cmd. The values prefixed with a colon (:) are placeholders for EDBParameters that are instantiated, assigned values, and then added to the insert command's parameter collection in the statements that follow. The insert command is executed by the ExecuteNonQuery() method of the cmdInsert object.

4 Using the .NET Connector : 4.4 Inserting Records in a Database

Table of Contents Previous Next