DateTime2 方法
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.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Shared Function DateTime2 ( _
scale As Integer _
) As DataType
用法
Dim scale As Integer
Dim returnValue As DataType
returnValue = DataType.DateTime2(scale)
public static DataType DateTime2(
int scale
)
public:
static DataType^ DateTime2(
int scale
)
static member DateTime2 :
scale:int -> DataType
public static function DateTime2(
scale : int
) : DataType
参数
- scale
类型:System. . :: . .Int32
Int32
返回值
类型:Microsoft.SqlServer.Management.Smo. . :: . .DataType
A DataType object value that specifies a DateTime2 definition in the data type.
注释
The returned DateTime2 object constructor is initialized with the scale value that determines the precision of the DateTime2 object.