共用方式為


TextFileGroup 屬性

取得或設定用來維護儲存在資料表內可變長度之長資料的檔案群組。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property TextFileGroup As String
    Get
    Set
'用途
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)

屬性值

型別:System. . :: . .String
String 值,這個值會指定儲存在資料表內可變長度之 Long 資料的所在檔案群組。

範例

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["AdventureWorks2008R2"];

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("AdventureWorks2008R2")

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