共用方式為


RecoveryManager.DetachShard Method (ShardLocation)

Detaches the given shard from the shard map manager. Mappings pointing to the shard to be deleted will automatically be removed by this method.

Namespace: Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Recovery
Assembly: Microsoft.Azure.SqlDatabase.ElasticScale.Client (in Microsoft.Azure.SqlDatabase.ElasticScale.Client.dll)

Usage

'Usage
Dim instance As RecoveryManager
Dim location As ShardLocation

instance.DetachShard(location)

Syntax

'Declaration
Public Sub DetachShard ( _
    location As ShardLocation _
)
public void DetachShard (
    ShardLocation location
)
public:
void DetachShard (
    ShardLocation^ location
)
public void DetachShard (
    ShardLocation location
)
public function DetachShard (
    location : ShardLocation
)

Parameters

  • location
    Location of the shard being detached.

Remarks

Note that this method can cause unrecoverable data loss. Make sure you have taken backups or copies of your databases and only then proceed with great care.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

RecoveryManager Class
RecoveryManager Members
Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Recovery Namespace