A procedure stored as part of a database in a relational database management system. Stored procedures can be supplied with the DBMS or written by users in its command language (usually a dialect of SQL). They are a means both of extending the underlying command language and of encapsulating frequent operations on individual databases.