
Inserting in to a SQL Server Database
I want to insert in this example one to five rows row into the Database. My
database on the other hand has say 10K entries. What I want to know is
rather than populate the Dataset with 10K records then add to the dataset my
1 to 5 new record(s) then update the database using the Data adapter's
update method, Can I just create a new dataset add the 1 -5 new records and
call the update method for the dataadapter's update method without worry?
Will this method erase all of my data or is the Update method smart enough
not to delete the data already stored in the database (but not downloaded to
the Dataset).
Quote:
> I don't quite understand your question -- you want to add a row to a
> Dataset?
> --
> Josh Mitts
> Microsoft .NET MVP (.NET Framework, C#, .NET CF/SDE)
> http://www.joshmitts.com
> I am wondering if I can do this. I want to add 1 record to my Database.
> Instead of filling a Dataset , adding the row then calling Updatemethod.
Can
> I just use a Blank typed Dataset add the row then call update?
> Ben