get @RETURN_VALUE after calling MyTableAdapter.Update(...)

G

google

The subject pretty much says it all. I've got a TableAdapter that
calles a stored procedure for its InsertCommand and the stored
procedure returns an integer into @RETURN_VALUE. I can't figure out
either of the following:

1. How do I get the @RETURN_VALUE from the parameters collections of
the commands that were called during the update?
2. How do I access the InsertCommand, DeleteCommand, SelectCommand,
and UpdateCommand objects from my TableAdapter through code? They
don't seem to be available as class members from code... very strange
as they are definitely class members.

TIA!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top