-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure SQL Server Agent Properties #1980
Comments
There are no resource yet for this. Please send in a PR with a new resource, suggested name 'SqlAgentSettings`. It is probably the properties Can probably re-use code from the DSC Resource SqlAgentAlert that uses the same class. |
Submitted issue #1981 to track this. Closing this in favor of the new issue since it is using the correct issue template for a new resource. @SQLDBAWithoutABeard Please consider sending in a PR to resolve issue #1981. |
@SQLDBAWithoutABeard you should also be able to use SqlScript och SqlScriptQuery using T-SQL to configure this. See documentation for those DSC resources. |
Thanks for your prompt response -sqlscript worked perfectly! |
How do I use SQL Server DSC to configure Agent Properties please? In particular, I'd like to use it to disable 'Limit size of job history log' (SQL Server Agent Properties | History). This is the SQL to do the same:
USE [msdb]
GO
EXEC msdb.dbo.sp_set_sqlagent_properties @jobhistory_max_rows=-1,
@jobhistory_max_rows_per_job=-1
GO
Many thanks
The text was updated successfully, but these errors were encountered: