April 26, 2006 at 10:09 am
May 1, 2006 at 8:00 am
This was removed by the editor as SPAM
May 2, 2006 at 7:43 am
1) This sounds a bug. The "Automatically remove agent history checkbox and set the time delay" is not set as an agent property. Check the set agent properties system SP in msdb, it does not have the property:
CREATE PROCEDURE [dbo]
.[sp_set_sqlagent_properties]
@auto_start
INT = NULL, -- 1 or 0
-- Non-SQLDMO exposed properties
@sqlserver_restart
INT = NULL, -- 1 or 0
@jobhistory_max_rows
INT = NULL, -- No maximum = -1, otherwise must be > 1
@jobhistory_max_rows_per_job
INT = NULL, -- 1 to @jobhistory_max_rows
@errorlog_file
NVARCHAR(255) = NULL, -- Full drive\path\name of errorlog file
@errorlogging_level
INT = NULL, -- 1 = error, 2 = warning, 4 = information
@error_recipient
NVARCHAR(30) = NULL, -- Network address of error popup recipient
@monitor_autostart
INT = NULL, -- 1 or 0
@local_host_server
sysname = NULL, -- Alias of local host server
@job_shutdown_timeout
INT = NULL, -- 5 to 600 seconds
@cmdexec_account
VARBINARY(64) = NULL, -- CmdExec account information
@regular_connections
INT = NULL, -- obsolete
@host_login_name
sysname = NULL, -- obsolete
@host_login_password
VARBINARY(512) = NULL, -- obsolete
@login_timeout
INT = NULL, -- 5 to 45 (seconds)
@idle_cpu_percent
INT = NULL, -- 1 to 100
@idle_cpu_duration
INT = NULL, -- 20 to 86400 seconds
@oem_errorlog
INT = NULL, -- 1 or 0
@sysadmin_only
INT = NULL, -- not applicable to Yukon server, for backwards compatibility only
@email_profile
NVARCHAR(64) = NULL, -- Email profile name
@email_save_in_sent_folder
INT = NULL, -- 1 or 0
@cpu_poller_enabled
INT = NULL, -- 1 or 0
@alert_replace_runtime_tokens
INT = NULL -- 1 or 0
AS
...
Instead, SSMS generates the script
EXEC msdb.dbo.sp_purge_jobhistory @oldest_date='a time'
to purge the log.
2) If you remove OEM checkbox, you should not have the error. The log file in OEM fomat does not accept unicode.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply