DataType.DateTime2 Method
DateTime2 is an extension of the existing DATETIME type. It has a large date range and large default fractional precision. It has a length of at least 19 positions.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Deklaracja
Public Shared Function DateTime2 ( _
scale As Integer _
) As DataType
public static DataType DateTime2 (
int scale
)
public:
static DataType^ DateTime2 (
int scale
)
public static DataType DateTime2 (
int scale
)
public static function DateTime2 (
scale : int
) : DataType
Parameters
- scale
Int32
Return Value
A DataType object value that specifies a DateTime2 definition in the data type.
Remarks
The returned DateTime2 object constructor is initialized with the scale value that determines the precision of the DateTime2 object.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.