sp_procoption (Transact-SQL)
SQL Server 2005
Sets stored procedure for autoexecution. A stored procedure that is set to autoexecution runs every time an instance of SQL Server is started.
Transact-SQL Syntax Conventions
- [ @ProcName = ] 'procedure'
-
Is the name of the procedure for which to set an option. procedure is nvarchar(776), with no default.
- [ @OptionName = ] 'option'
-
Is the name of the option to set. The only value for option is startup.
- [ @OptionValue = ] 'value'
-
Is whether to set the option on (true or on) or off (false or off). value is varchar(12), with no default.
Reference
Database Engine Stored Procedures (Transact-SQL)System Stored Procedures (Transact-SQL)
