dmclearevents - Clear events
Use this command to delete events from the Event Log view in Management Console.
Syntax
dmclearevents [-I <name>] [-S|-T|-B] -A|-s <subscription ...>
[-L <locale>]
Parameters
- [-I <name>]
- Specifies the name of the CDC Replication instance. Alternatively, you can specify the TSINSTANCE environment variable in place of this value.
- [-S]
- Specifies that CDC Replication clears events from the source.
- [-T]
- Specifies that CDC Replication clears events from the target.
- [-B]
- Specifies that CDC Replication clears
events from both the source and target. If none of the
S
,T
, andB
options are specified, CDC Replication assumesB
by default. - -A
- Specifies that CDC Replication clears events for all subscriptions.
- -s <subscription ...>
- Specifies that CDC Replication clears events for the indicated subscription.
- [-L <locale>]
- The name of the locale used for the CDC Replication instance. The default is your machine's locale.
Result
This command returns a value of 0 if the command was successful and a non-zero value if the command fails.
Examples
dmclearevents
-I MYINSTANCE -S -A
CDC Replication clears events from the source for all subscriptions for the specified instance.
dmclearevents
-I MYINSTANCE -B -s FINANCE MARKETING
CDC Replication clears events from both the source and target for the Finance and Marketing subscriptions for the specified instance.