Re: error handling when updating a datasource via a data adapter
From: Joyjit Mukherjee (joyjit_mukherjee_at_hotmail.com)
Date: 09/07/04
- Next message: Cor Ligthert: "Re: Updating Database"
- Previous message: Joyjit Mukherjee: "Re: Connection Problem"
- In reply to: matthew c. harad: "error handling when updating a datasource via a data adapter"
- Next in thread: matthew c. harad: "Re: error handling when updating a datasource via a data adapter"
- Reply: matthew c. harad: "Re: error handling when updating a datasource via a data adapter"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 7 Sep 2004 10:43:08 +0530
Hi,
trap the DataAdapters RowUpdated event, theres a Error property which is a
exception object that you can look for the type of error.
HTH
Regards
Joyjit
"matthew c. harad" <matthewcharad@discussions.microsoft.com> wrote in
message news:41F256C1-C215-42D3-BB04-CED6C1EFDCAE@microsoft.com...
> i'm updating a table using a data adapter and stored procedure as it's
> insert/update commands.
>
> in certain cases, i would like the stored procedure to throw an exception
> and fail -- or just return an error, and then i want to catch the
exception
> at the .net application layer.
>
> how is the best way to handle this? i don't mind if the entire update
> fails, rather than just one of the updated rows in the dataset. i would
just
> like to handle it simply. i wasn't successful with the docs on this one.
>
> much appreciated,
> matthew
- Next message: Cor Ligthert: "Re: Updating Database"
- Previous message: Joyjit Mukherjee: "Re: Connection Problem"
- In reply to: matthew c. harad: "error handling when updating a datasource via a data adapter"
- Next in thread: matthew c. harad: "Re: error handling when updating a datasource via a data adapter"
- Reply: matthew c. harad: "Re: error handling when updating a datasource via a data adapter"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|