Propriedade do RDL OnlineHeapOperation
Obtém ou define o valor Boolean que determina se a tabela dá suporte a operações de heap ou de índice online.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Property OnlineHeapOperation As Boolean
Get
Set
'Uso
Dim instance As Table
Dim value As Boolean
value = instance.OnlineHeapOperation
instance.OnlineHeapOperation = value
public bool OnlineHeapOperation { get; set; }
public:
property bool OnlineHeapOperation {
bool get ();
void set (bool value);
}
member OnlineHeapOperation : bool with get, set
function get OnlineHeapOperation () : boolean
function set OnlineHeapOperation (value : boolean)
Valor da propriedade
Tipo: System. . :: . .Boolean
Um valor Boolean que especifica se a tabela dá suporte a operações de heap ou de índice online.
Se True, a tabela dá suporte para operações de heap online. Caso contrário, False.
Exemplos
The following code example lists all of the tables in the AdventureWorks2008R2 database that support online heap operations.
C#
Server srv = new Server("(local)");
Database db = srv.Databases["AdventureWorks2008R2"];
foreach (Table tb in db.Tables)
{
if (tb.OnlineHeapOperation == True)
{
Console.WriteLine("The " + tb.Name + " table supports online heap operations.");
}
}
Powershell
$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
$db = New-Object Microsoft.SqlServer.Management.Smo.Database
$db = $srv.Databases.Item("AdventureWorks2008R2")
Foreach ($tb in $db.Tables)
{
If ($tb.OnlineHeapOperation -eq $TRUE)
{
Write-Host "The" $tb.Name "table supports online heap operations."
}
}
Consulte também