Table.EnumLastStatisticsUpdates 메서드

Enumerates a list of information about the most recent statistics updates.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Function EnumLastStatisticsUpdates As DataTable
‘사용 방법
Dim instance As Table 
Dim returnValue As DataTable 

returnValue = instance.EnumLastStatisticsUpdates()
public DataTable EnumLastStatisticsUpdates()
public:
DataTable^ EnumLastStatisticsUpdates()
member EnumLastStatisticsUpdates : unit -> DataTable
public function EnumLastStatisticsUpdates() : DataTable

반환 값

유형: System.Data.DataTable
A DataTable system object value that contains a list of information about the most recent statistics updates.

Column

Data type

Description

Name

String

The name of the key or index on which the statistic counter is based.

LastUpdated

DateTime

The date and time when the statistics were last updated.

The following code example demonstrates how to enumerate statistic update information.

C#

Server srv = new Server("(local)");
Database db = srv.Databases["AdventureWorks2012"];
lastStatisticsUpdates[];
Table tb1 = db.Tables[0];
Table tb2 = db.Tables[1];

DataTable[] lastSUpdates = new DataTable[2] {tb1.EnumLastStatisticsUpdates(), tb2.EnumLastStatisticsUpdates()}

Powershell

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

$tb1 = $db.Tables[0]
$tb2 = $db.Tables[1]
$lastSUpdates = @($tb1.EnumLastStatisticsUpdates(), $tb2.EnumLastStatisticsUpdates());

참고 항목

참조

Table 클래스

EnumLastStatisticsUpdates 오버로드

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

테이블 생성, 변경 및 제거

테이블

CREATE TABLE(Transact-SQL)