Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

run stored procedures one after the other

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?
0
AlHal2
Asked:
AlHal2
1 Solution
 
Bob LearnedCommented:
Database operations are usually synchronous, but not all of them.  Can you explain what you are working with?
0
 
Jacques Bourgeois (James Burger)PresidentCommented:
Simply merge the two procedures into one. You can have more than one SQL command in the same procedure.
0
 
AlHal2Author Commented:
thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now