Operations: Server: How to Promote a Database Node?
This operation is used to promote a database node. After promotion, the node is considered as a Member
.
Syntax
public PromoteDatabaseNodeOperation(string databaseName, string node)
Parameters | ||
---|---|---|
databaseName | string | Name of a database |
node | string | Node tag to promote into database group Member |
Example
PromoteDatabaseNodeOperation promoteOperation = new PromoteDatabaseNodeOperation("Northwind", "C");
store.Maintenance.Server.Send(promoteOperation);