It seems that the job you modified encountered an issue after the scheduling change, indicated by the error "The last step to execute was step 0." This typically means that the job did not execute any steps, possibly due to a misconfiguration in the job settings or scheduling. Here are a few things to check:
- Job Schedule: Ensure that the new schedule is correctly configured and that it is active. Sometimes, jobs may not run if the schedule is set incorrectly or if there are conflicts with other jobs.
- Job Step Configuration: Verify that the job step that calls the stored procedure is still correctly set up. Check for any changes in the stored procedure itself that might affect its execution.
- Permissions: Ensure that the SQL Server Agent service account has the necessary permissions to execute the stored procedure.
- Error Logs: Check the SQL Server Agent job history and SQL Server error logs for more detailed error messages that can provide additional context on why the job failed.
Regarding your question about the auto-close feature and autogrowth settings:
- Auto-Close: It is generally recommended to keep the auto-close option disabled for production databases. Enabling auto-close can lead to performance issues as it causes the database to close and reopen frequently, which can be detrimental to performance.
- Autogrowth Maxsize: Setting the autogrowth max size can be done in either percentage or megabytes. The choice depends on your specific needs:
- Percentage: This is useful for databases that grow significantly over time, as it allows for proportional growth relative to the current size.
- Megabytes: This can be more predictable and manageable, especially for databases with known growth patterns. It can help prevent excessive fragmentation and control growth more tightly.
In many cases, a combination of both settings can be beneficial, but monitoring the database's growth and performance is key to determining the best approach for your environment.