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.
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.