It'd be nice to have an Action JavaScript for web field events, including buttons and images, to call an SQL stored procedure. I would envision a choice of SQL backends, a place to select parameters from the current row to pass in (plus additional literal or session variables), and an automatic "working..." pop up while it runs.

Maybe it could also be added to Action Buttons, and tabbed UI buttons.