You can use the sp_procoption
system stored procedure to mark the stored procedure to automatic execution when the SQL Server will start. Only objects in the master database owned by dbo can have the startup setting changed and this option is restricted to objects that have no parameters.
USE master EXEC sp_procoption 'indRebuild', 'startup', 'true')