Hello!
I use DataAdapter.Fil l method to fill the dataset with data from a SQL database table. But when the same method is called for a second time subsequently, it appends the data instead of overwriting the duplicate rows in the table.
For example, i use DataAdapter.Fil l(mydataset,"my table"). the "mytable" has 50 rows and copies the same to "maytable" in mydataset. But after a subsequent call to DataAdapter.Fil l(mydataset,"my table"), the mytable in mydataset has 100 rows (i.e all the 50 rows duplicated).
Can anyone please tell me how to avoid that!!
I hope I have posted this in the right forum,else let me know...
Thank you!
I use DataAdapter.Fil l method to fill the dataset with data from a SQL database table. But when the same method is called for a second time subsequently, it appends the data instead of overwriting the duplicate rows in the table.
For example, i use DataAdapter.Fil l(mydataset,"my table"). the "mytable" has 50 rows and copies the same to "maytable" in mydataset. But after a subsequent call to DataAdapter.Fil l(mydataset,"my table"), the mytable in mydataset has 100 rows (i.e all the 50 rows duplicated).
Can anyone please tell me how to avoid that!!
I hope I have posted this in the right forum,else let me know...
Thank you!
Comment