Statistic.LastUpdated Property

Gets the date and time when the statistic counter was last updated.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property LastUpdated As DateTime 
    Get
'Usage
Dim instance As Statistic 
Dim value As DateTime 

value = instance.LastUpdated
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public DateTime LastUpdated { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property DateTime LastUpdated {
    DateTime get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member LastUpdated : DateTime
function get LastUpdated () : DateTime

Property Value

Type: System.DateTime
A DateTime system object value that specifies the date and time when the statistic counter was last updated.

Examples

Creating and Updating Statistics

See Also

Reference

Statistic Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

CREATE STATISTICS (Transact-SQL)