I am using SQL Adapter to select data from a table in SQL Server Database. After creating Object I am filling that to a datatable. Assum that dataset has 5 row. After that I m updating that dataset and add 3 more rows. but not able to update that dataset to database table.
My code is following.
SqlDataAdapter SDA = new SqlDataAdapter( "Select * from WFF", DAC.Conn); SDA.Fill(dt,"WF F");
//Updates dt here
SDA.Update(dt);
It does not update to database so please tell me wheres the problem and solution as i have wasted near about whole day on this.
My code is following.
SqlDataAdapter SDA = new SqlDataAdapter( "Select * from WFF", DAC.Conn); SDA.Fill(dt,"WF F");
//Updates dt here
SDA.Update(dt);
It does not update to database so please tell me wheres the problem and solution as i have wasted near about whole day on this.
Comment