I need to write a program. A part of the program is to write to an sql database (.mdf). I had a lot of trouble trying to add a new row to my table (called: \"Data\"). Here i
Try instead to set
dRow = new DataRow();
instead of
dRow = ds.Tables["Data"].NewRow();
and change
da.Update(ds, "Data");
to
da.Update(ds);