Synopsis
SqlCommand insertCommand = DataAdapter.InsertCommand
DataAdapter.InsertCommand = insertCommand;
Gets or sets the command, either a SQL statement or a stored
procedure, used to insert new DataSet
records into
the data source when the Update( )
method is
called.
Example
See the Example for the DeleteCommand
property in
this chapter.
Note
If the InsertCommand
property
isn’t set, and the DataSet
has a
primary key, the InsertCommand
can be
automatically generated using the CommandBuilder
after specifying the SelectCommand
property.