S
Steven
Hi,
I have a typed dataset with a SqlDataAdapter which enables
user to Insert, Update and Delete via Stored Procedure
Command to SQL Server. When user click on Update button,
I just call:
SqlDataAdapter1.Update
Everything works fine except that I would like to build
some validation logic on SP which will return some value
to application to indicate there's error and I want the
Update to be stopped. For example, say I have 3 rows to
update and the 2nd update SP return a value, then the 3rd
update should not get execate.
I just can't find a way to intercept
SqlDataAdapter1.Update to stop at 2nd update.
Is there anyway I can tackle the return value from SP via
SqlDataAdapter1.Update command?
Please help, thanks.
I have a typed dataset with a SqlDataAdapter which enables
user to Insert, Update and Delete via Stored Procedure
Command to SQL Server. When user click on Update button,
I just call:
SqlDataAdapter1.Update
Everything works fine except that I would like to build
some validation logic on SP which will return some value
to application to indicate there's error and I want the
Update to be stopped. For example, say I have 3 rows to
update and the 2nd update SP return a value, then the 3rd
update should not get execate.
I just can't find a way to intercept
SqlDataAdapter1.Update to stop at 2nd update.
Is there anyway I can tackle the return value from SP via
SqlDataAdapter1.Update command?
Please help, thanks.