sp_changedistributor_property (Transact-SQL)

更改分发服务器的属性。此存储过程在分发服务器的任何数据库中执行。

主题链接图标Transact-SQL 语法约定

语法

sp_changedistributor_property [ [ @property= ] 'property' ]
    [ , [ @value= ] 'value' ]

参数

  • [ @property=] 'property'
    给定分发服务器的属性。property 的数据类型为 sysname,可以是下列值之一。

    说明

    heartbeat_interval

    在不记录进度消息的情况下代理可以运行的最大分钟数。

    NULL(默认值)

    打印所有可用的 property 值。

  • [ @value=] 'value'
    给定分发服务器属性的值。value 的数据类型为 varchar(255),默认值为 NULL。

返回代码值

0(成功)或 1(失败)

备注

sp_changedistributor_property 用于所有类型的复制。

权限

只有 sysadmin 固定服务器角色的成员才能执行 sp_changedistributor_property

示例

-- Change the heartbeat interval at the Distributor to 5 minutes. 
USE master 
exec sp_changedistributor_property 
    @property = N'heartbeat_interval', 
    @value = 5;
GO

请参阅

参考

sp_adddistributor (Transact-SQL)
sp_dropdistributor (Transact-SQL)
sp_helpdistributor (Transact-SQL)
复制存储过程 (Transact-SQL)

其他资源

How to: View and Modify Publisher and Distributor Properties (Replication Transact-SQL Programming)

帮助和信息

获取 SQL Server 2005 帮助