List of the Most Common Data Type Mappings
2004-07-12 11:34
537 查看
http://support.microsoft.com/default.aspx?scid=kb;en-us;320435
The following table lists the most common data types that are used in Microsoft Access and how these data types relate to the Microsoft .NET Framework data types and to the OleDbType enumeration.
The following table lists the most common data types that are used in Microsoft Access and how these data types relate to the Microsoft .NET Framework data types and to the OleDbType enumeration.
Access Type Name | Database Data Type | OLE DB Type | .NET Framework Type | Member Name |
Text | VarWChar | DBTYPE_WSTR | System.String | OleDbType.VarWChar |
Memo | LongVarWChar | DBTYPE_WSTR | System.String | OleDbType.LongVarWChar |
Number: Byte | UnsignedTinyInt | DBTYPE_UI1 | System.Byte | OleDbType.UnsignedTinyInt |
Yes/No | Boolean | DBTYPE_BOOL | System.Boolean | OleDbType.Boolean |
Date/Time | DateTime | DBTYPE_DATE | System.DateTime | OleDbType.Date |
Currency | Decimal | DBTYPE_NUMERIC | System.Decimal | OleDbType.Numeric |
Number: Decimal | Decimal | DBTYPE_NUMERIC | System.Decimal | OleDbType.Numeric |
Number: Double | Double | DBTYPE_R8 | System.Double | OleDbType.Double |
Autonumber (Replication ID) | GUID | DBTYPE_GUID | System.Guid | OleDbType.Guid |
Number: (Replication ID) | GUID | DBTYPE_GUID | System.Guid | OleDbType.Guid |
Autonumber (Long Integer) | Integer | DBTYPE_I4 | System.Int32 | OleDbType.Integer |
Number: (Long Integer) | Integer | DBTYPE_I4 | System.Int32 | OleDbType.Integer |
OLE Object | LongVarBinary | DBTYPE_BYTES | Array of System.Byte | OleDbType.LongVarBinary |
Number: Single | Single | DBTYPE_R4 | System.Single | OleDbType.Single |
Number: Integer | SmallInt | DBTYPE_I2 | System.Int16 | OleDbType.SmallInt |
Binary | VarBinary* | DBTYPE_BYTES | Array of System.Byte | OleDbType.Binary |
Hyperlink | VarWChar | DBTYPE_WSTR | System.String | OleDbType.VarWChar |
相关文章推荐
- 千年零一虫
- VC与Delphi之间动态链接库互相调用
- 用Ole Automation实现Delphi和AutoCad之间的数据交换
- Microsoft Visual Studio .NET 2003制作安装程序
- 如何用VB获得机器的MAC地址
- delphi中的时间操作技术(1)
- delphi中的时间操作技术(2)
- IP地址的隐藏(delphi实现 )
- 将某一主机域名解析为IP地址
- 一个画图类,类似ms_chart的线图,适用于科学仿真数据分析(二)
- 使用 .NET 框架将现有代码作为 Web 服务提供
- 移植到 Windows 2000 和 COM+
- 用VB和MTS开发多层数据库应用系统
- 纯编码实现数据库的建立或压缩
- 用ASP备份数据库
- 如何在VB例程中接收自定义消息
- 如何配置才能使用InterDev 来调试ASP代码 zt
- What is EDI?
- Intermidiate EDI--CPFR
- PowerShell 修复 Robocopy的权限问题