Access ing between Access data types and. NET Data Types

Source: Internet
Author: User
Tags name database
The following table lists the most common data types used in Microsoft. NETFramework data types and OleDbType enumeration. Access type name database data type OLEDB type. NETFramework type member name text VarWCharDBTYPE_WSTRSystem.StringO

The following table lists the most common data types used in Microsoft Access and these data types, Microsoft. NET Framework data types, and OleDbType enumeration. Access type name database data type ole db type. NET Framework type member name text VarWChar DBTYPE _ WSTR System. String O

The following table lists the most common data types used in Microsoft Access and these data types, Microsoft. NET Framework data types, and OleDbType enumeration.

Access type name Database Data Type Ole db type . NET Framework type Member name
Text VarWChar DBTYPE _ WSTR System. String OleDbType. VarWChar
Remarks LongVarWCha r DBTYPE _ WSTR System. String OleDbType. LongVarWChar
No.: byte UnsignedTinyInt DBTYPE _ UI 1 System. Byte OleDbType. UnsignedTinyInt
Yes/No Boolean Value DBTYPE_BOOL System. Boolean OleDbType. Boolean
Date/time Date and Time DBTYPE_DATE System. DateTime OleDbType. Date
Currency Decimal DBTYPE_NUMERIC System. Decimal OleDbType. Numeric
No.: decimal Decimal DBTYPE_NUMERIC System. Decimal OleDbType. Numeric
No.: Double Type Value Double-click DBTYPE_R8 System. Double OleDbType. Double
Automatic ID (copy ID) GUID DBTYPE_GUID System. Guid OleDbType. Guid
Number: (copy ID) GUID DBTYPE_GUID System. Guid OleDbType. Guid
Automatic number (long integer) Integer DBTYPE_I4 System. Int 32 OleDbType. Integer
Number: (long integer) Integer DBTYPE_I4 System. Int 32 OleDbType. Integer
OLE object LongVarBinary DBTYPE_BYTES System. Byte array OleDbType. LongVarBinary
No.: Single type value Single DBTYPE_R4 System. Single OleDbType. Single
No.: Integer value Smallint DBTYPE_I2 System. Int 16 OleDbType. SmallInt
Binary Varbinary * DBTYPE_BYTES System. Byte array OleDbType. Binary
Hyperlink VarWChar DBTYPE _ WSTR System. String OleDbType. VarWChar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.