run stored procedures one after the other

AlHal2
AlHal2 used Ask the Experts™
on
In my asp.net 3.5 app I want to run a stored procedure to insert/update a database table.  Then I want my gridview to reference that table using a second stored procedure.  How can I make sure the second stored procedure runs after the first has finished?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2008

Commented:
Database operations are usually synchronous, but not all of them.  Can you explain what you are working with?
Top Expert 2015
Commented:
Simply merge the two procedures into one. You can have more than one SQL command in the same procedure.

Author

Commented:
thanks.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial