You can use a stored procedure to modify a database. A stored procedure is a reusable database item that performs some operation on the database.
NOTE |
|
mySQL and Microsoft Access databases do not support stored procedures. |
Before you use a stored procedure to modify a database, make sure the stored procedure contains SQL that modifies the database in some way. To create and store one in your database, consult your database documentation and a good Transact-SQL manual.
The procedure for using a stored procedure varies depending on your server model.
This section covers the following server models: