简体   繁体   中英

All the stored procedures in SQL Server are stored in which database?

Can you please tell me to know all the stored procedures in SQL Server are stored in which database? I have confusion between master DB or model DB?

Stored procedures are stored in the database in which they are created. The stored procedures stored in master are the ones that are shipped with SQl Server, the master database is used by the SQL Server Engine.

The model database is a template for other databases. When you create a new database new a copy of the model database is created. So if you have tables or stored procedures you wish to have in all newly created databases you can add them to the model database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM