This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
stored procedure
A precompiled collection of SQL statements and optional control-of-flow statements stored under a name and processed as a unit. Stored procedures are stored in an SQL database such as Microsoft SQL Server, usually on a server; can be run with one call from an application; and allow user-declared variables, conditional execution, and other powerful programming features.