RowCountAsDouble 속성
테이블의 행 수를 부동 소수점 값으로 가져옵니다.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property RowCountAsDouble As Double
Get
‘사용 방법
Dim instance As Table
Dim value As Double
value = instance.RowCountAsDouble
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public double RowCountAsDouble { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property double RowCountAsDouble {
double get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member RowCountAsDouble : float
function get RowCountAsDouble () : double
속성 값
유형: System. . :: . .Double
테이블의 행 수를 지정하는 Float64 값입니다.
예
The following code example displays the number of rows contained in each table of the AdventureWorks2008R2 database.
C#
Server srv = new Server("(local)");
Database db = srv.Databases["AdventureWorks2008R2"];
foreach (Table tb in db.Tables)
{
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 "conains" $tb.RowCountAsDouble "rows."
}