Compartilhar via


Propriedade do RDL Table.TextFileGroup

Gets or sets the filegroup that is used to maintain long, variable-length data stored in the table.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property TextFileGroup As String 
    Get 
    Set
'Uso
Dim instance As Table 
Dim value As String 

value = instance.TextFileGroup

instance.TextFileGroup = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public string TextFileGroup { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property String^ TextFileGroup {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member TextFileGroup : string with get, set
function get TextFileGroup () : String 
function set TextFileGroup (value : String)

Valor da propriedade

Tipo: System.String
A String value that specifies filegroup where long, variable-length data is stored in the table.

Exemplos

The following code example displays the long, variable-length data filegroup for each table in the database.

C#

Server srv = new Server("(local)");
Database db = srv.Databases["AdventureWorks2012"];

foreach (Table tb in db.Tables) 
{
   if
   Console.WriteLine("The " + tb.Name + " contains " + tb.RowCountAsDouble + " rows.");
}

Powershell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
$db = New-Object Microsoft.SqlServer.Management.Smo.Database
$db = $srv.Databases.Item("AdventureWorks2012")

Foreach ($tb in $db.Tables) 
{
   Write-Host "The " $tb.Name " text file group is " $tb.TextFileGroup "."
}

Consulte também

Referência

Table Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Tabelas

CREATE TABLE (Transact-SQL)