title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sp_MSchange_logreader_agent_properties (T-SQL) |
Describes the sp_MSchange_logreader_agent_properties stored procedure used to change the properties of the Log Reader Agent for a SQL Server Replication topology. |
markingmyname |
maghan |
randolphwest |
08/21/2024 |
sql |
replication |
reference |
|
|
|
[!INCLUDE SQL Server]
Changes the properties of a Log Reader Agent job that runs at a [!INCLUDE ssVersion2005] or later version Distributor. This stored procedure is used to change properties when the Publisher runs on an instance of [!INCLUDE ssVersion2000]. This stored procedure is executed at the Distributor on the distribution database.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
sp_MSchange_logreader_agent_properties
[ @publisher = ] N'publisher'
, [ @publisher_db = ] N'publisher_db'
, [ @publisher_security_mode = ] publisher_security_mode
, [ @publisher_login = ] N'publisher_login'
, [ @publisher_password = ] N'publisher_password'
, [ @job_login = ] N'job_login'
, [ @job_password = ] N'job_password'
, [ @publisher_type = ] N'publisher_type'
[ ; ]
The name of the Publisher. @publisher is sysname, with no default.
The name of the publication database. @publisher_db is sysname, with no default.
The security mode used by the agent when connecting to the Publisher. @publisher_security_mode is int, with no default.
0
specifies [!INCLUDE ssNoVersion] authentication1
specifies Windows authentication
The login used when connecting to the Publisher. @publisher_login is sysname, with no default. @publisher_login must be specified when @publisher_security_mode is 0
. If @publisher_login is NULL
and @publisher_security_mode is 1
, then the Windows account specified in @job_login is used when connecting to the Publisher.
The password used when connecting to the Publisher. @publisher_password is nvarchar(524), with no default.
The login for the Windows account under which the agent runs. @job_login is nvarchar(257), with no default. This property can't be changed for a non-[!INCLUDE ssNoVersion] Publisher.
The password for the Windows account under which the agent runs. @job_password is sysname, with no default.
Specifies the Publisher type when the Publisher isn't running in an instance of [!INCLUDE ssNoVersion]. @publisher_type is sysname, and can be one of the following values.
Value | Description |
---|---|
MSSQLSERVER |
Specifies a [!INCLUDE ssNoVersion] Publisher. |
ORACLE |
Specifies a standard Oracle Publisher. |
ORACLE GATEWAY |
Specifies an Oracle Gateway Publisher. |
For more information about the differences between an Oracle Publisher and an Oracle Gateway Publisher, see Oracle Publishing Overview.
sp_MSchange_logreader_agent_properties
is used in transactional replication.
You must specify all parameters when executing sp_MSchange_logreader_agent_properties
. Execute sp_helplogreader_agent to return the current properties of the Log Reader Agent job.
After changing an agent login or password, you must stop and restart the agent before the change takes effect.
You can use sp_changelogreader_agent on the Publisher to change properties of the Log Reader Agent.
Only members of the sysadmin fixed server role at the Distributor can execute sp_MSchange_logreader_agent_properties
.