Re: How do you update the SQL Server Agent's SysAdmin Password
- From: "Jasper Smith" <jasper_smith9@xxxxxxxxxxx>
- Date: Wed, 14 Dec 2005 16:42:43 -0000
http://sqldev.net/download/sqlagent/sp_sqlagent_set_connection.sql
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"jwbutler" <u16619@uwe> wrote in message news:58bdc8356dee5@xxxxxx
>I am trying to update the SQL Server Agent property SysAdmin Password. I
>am
> using sp_set_sqlagent_properties and all the other properties except
> password
> is being updated properly. This is a sample of the code I am using. Can
> any
> one help me get on the right track.
>
> DECLARE @Password as VARBINARY(512)
> SELECT @Password=CONVERT(VARBINARY(512),CAST('NEWPASSWORD' AS CHAR))
> exec sp_set_sqlagent_properties
> @auto_start=1,
> @sqlserver_restart=1,
> @jobhistory_max_rows=1000,
> @jobhistory_max_rows_per_job=100,
> @errorlog_file=NULL,
> @errorlogging_level=3,
> @error_recipient=NULL,
> @monitor_autostart=1,
> @local_host_server=NULL,
> @job_shutdown_timeout=15,
> @cmdexec_account=NULL,
> @regular_connections=1,
> @host_login_name='sa',
> @host_login_password=@Password,
> @login_timeout=30,
> @idle_cpu_percent=10,
> @idle_cpu_duration=600,
> @oem_errorlog=0,
> @sysadmin_only=1,
> @email_profile=NULL,
> @email_save_in_sent_folder=NULL,
> @cpu_poller_enabled=1
.
- Follow-Ups:
- Re: How do you update the SQL Server Agent's SysAdmin Password
- From: jwbutler via SQLMonster.com
- Re: How do you update the SQL Server Agent's SysAdmin Password
- References:
- How do you update the SQL Server Agent's SysAdmin Password
- From: jwbutler
- How do you update the SQL Server Agent's SysAdmin Password
- Prev by Date: Re: Cant create diagram of exiting database
- Next by Date: Re: MAC address
- Previous by thread: RE: How do you update the SQL Server Agent's SysAdmin Password
- Next by thread: Re: How do you update the SQL Server Agent's SysAdmin Password
- Index(es):
Relevant Pages
|
|