// SQL command
String sSQLCommand = "INSERT INTO Person (Age, FirstName,
Description, Updated) " +
"VALUES( 55, 'Bob', 'Is a Penguin',
'2001/12/25 20:30:15' );";
// Create the command object
ADOCommand cmdAdder = new ADOCommand(
sSQLCommand,
DB_CONN_STRING);
cmdAdder.ActiveConnection.Open();
// Execute the SQL command
int nNoAdded = cmdAdder.ExecuteNonQuery();
System.Console.WriteLine( "\nRow(s) Added = " + nNoAdded + "\n" ); |