sql 数据类型 - 日期 OleDbSchema
sql data type - date OleDbSchema
我有一个 SQL Server 2012 table,其中有一列名为 X
并定义为 DATE
。
当我 运行 GetOleDbSchemaTable(OleDbSchemaGuid.Columns,...)
时 DATE_TYPE
出现 130。我期待 133。
谁能解释一下?非常感谢!
来自 MSDN Using Date and Time Data:
Backward Compatibility for Down-level Clients
Some down-level clients do not support the time, date, datetime2 and
datetimeoffset data types added in SQL Server 2008. The following
table shows the type mapping between an up-level instance of SQL
Server 2008 and down-level clients.
你看到 130 是因为向后兼容
我有一个 SQL Server 2012 table,其中有一列名为 X
并定义为 DATE
。
当我 运行 GetOleDbSchemaTable(OleDbSchemaGuid.Columns,...)
时 DATE_TYPE
出现 130。我期待 133。
谁能解释一下?非常感谢!
来自 MSDN Using Date and Time Data:
Backward Compatibility for Down-level Clients
Some down-level clients do not support the time, date, datetime2 and datetimeoffset data types added in SQL Server 2008. The following table shows the type mapping between an up-level instance of SQL Server 2008 and down-level clients.
你看到 130 是因为向后兼容