PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET adapter manager error handling

Reply

adapter manager error handling

 
Thread Tools Rate Thread
Old 04-05-2008, 06:51 PM   #1
John
Guest
 
Posts: n/a
Default adapter manager error handling


Hi

How can I handle errors in the UpdateAll method for adapter manager
considering that it has multiple tables. Its probably easy by using
try/catch if only one table has errors but what if more than one table have
errors at update?

Thanks

Regards


  Reply With Quote
Old 05-05-2008, 06:24 AM   #2
Cor Ligthert[MVP]
Guest
 
Posts: n/a
Default Re: adapter manager error handling

John,

Mostly are errors in multiple tables (I assume a dataset) related from each
other, moreover, you have to update them in a special order. Search Google
for this.

http://msdn.microsoft.com/en-us/lib...w.rowstate.aspx

As you use autoidentefiers which are not Guid, then don't forget to check
the dataset if it hasErrors.

http://msdn.microsoft.com/en-us/lib....haserrors.aspx

Cor





"John" <info@nospam.infovis.co.uk> schreef in bericht
news:%23%234Us9grIHA.4884@TK2MSFTNGP06.phx.gbl...
> Hi
>
> How can I handle errors in the UpdateAll method for adapter manager
> considering that it has multiple tables. Its probably easy by using
> try/catch if only one table has errors but what if more than one table
> have errors at update?
>
> Thanks
>
> Regards
>


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off