Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari iniPelayar ini tidak lagi disokong.
Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.
Applies to:
SQL Server
Creates a database mirroring monitor job that periodically updates the mirroring status for every mirrored database on the server instance.
Transact-SQL syntax conventions
sp_dbmmonitoraddmonitoring [ [ @update_period = ] update_period ]
[ ; ]
Specifies the interval between updates in minutes. @update_period is int, with a default of 1
. This value can be from 1 to 120 minutes.
If update period is set too low, the response time might increase for clients.
None.
None.
This procedure requires that SQL Server Agent is allowed to run on the server instance. For the database mirroring monitor job to run, Agent must be running.
If database mirroring is started from SQL Server Management Studio, the sp_dbmmonitoraddmonitoring
procedure is run automatically. If you start mirroring up manually using ALTER DATABASE
statements, to monitor mirrored database on the server instance, you must run sp_dbmmonitoraddmonitoring
manually.
Nota
If you run sp_dbmmonitoraddmonitoring
before you set up database mirroring, the monitoring job will run but will not update the status table in which database mirroring monitor history is stored.
Requires membership in the sysadmin fixed server role, or execute permission directly on this stored procedure.
The following example starts monitoring with an update period of 3
minutes.
EXEC sp_dbmmonitoraddmonitoring 3;
Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari ini