Try
daMyAdpater.Update(MyDataSet.MyTable)
catch sqlex as SqlException
messagebox.show(sqlex.ToString)
'fixing any SQLTransact code problem
catch ex as Exception
messagebox.show(ex.ToString0
finally
messagebox.show("This will done always as long as you do not power off")
end Try
There is a thirth one you can use, but I never do that.
Cor
"John" <Jo**@nospam.infovis.co.ukschreef in bericht
news:e%****************@TK2MSFTNGP02.phx.gbl...
Hi
I am updating a datatable in a dataset as below;
daMyAdpater.Update(MyDataSet.MyTable)
How can I trap various different exceptions that may occur during this
update process?
Thanks
Regards