Skip to content

Latest commit

 

History

History
81 lines (58 loc) · 2.48 KB

sp-dbmmonitorchangemonitoring-transact-sql.md

File metadata and controls

81 lines (58 loc) · 2.48 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_dbmmonitorchangemonitoring (Transact-SQL)
sp_dbmmonitorchangemonitoring changes the value of a database mirroring monitoring parameter.
markingmyname
maghan
randolphwest
07/04/2024
sql
system-objects
reference
sp_dbmmonitorchangemonitoring
sp_dbmmonitorchangemonitoring_TSQL
sp_dbmmonitorchangemonitoring
database mirroring [SQL Server], monitoring
TSQL

sp_dbmmonitorchangemonitoring (Transact-SQL)

[!INCLUDE SQL Server]

Changes the value of a database mirroring monitoring parameter.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

sp_dbmmonitorchangemonitoring
    [ @parameter_id = ] parameter_id
    , [ @value = ] value
[ ; ]

Arguments

[ @parameter_id = ] parameter_id

Specifies the identifier of the parameter to be changed. @parameter_id is int, with no default. Currently, only the following parameter is available:

Parameter Description of value
1 The number of minutes between updates to the database mirroring status table. The default interval is 1 minute.

[ @value = ] value

Specifies the new value for the parameter that is being changed. @value is int, with no default.

Parameter Description of value
1 An integer in the range of 1 to 120 that specifies a new update period in minutes.

Return code values

None.

Result set

None.

Permissions

Requires membership in the sysadmin fixed server role, or execute permission directly on this stored procedure.

Examples

The following example changes the update period to 5 minutes.

EXEC sp_dbmmonitorchangemonitoring 1, 5;

Related content