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 值,该值指定在其表中存储较长的可变长度数据的文件组。
示例
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 "."
}