Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

deleting rows

$
0
0
 da.DeleteCommand = New SqlCeCommand("Delete from Incident where incidentyear = " & Val(YearEntry.Text) & ";", con)

                dsIncident.Tables(0).Rows(0).Delete()

                da.Update(dsIncident.Tables(0))

this code works fine but I need to leave 1 row in the table so I do not get errors.

can this be done? if so, how?


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>