adBigInt20Int64
SqlDbType.BigInt 10
OleDbType.BigInt
11bigint 98     VariantadBinary128Byte[]
SqlDbType.VarBinary 10
OleDbType.Binary
11binary
timestamp
50
8
  Raw 7 VariantadBoolean11Boolean
SqlDbType.Bit 10
OleDbType.Boolean
11bit
1
2
 
 
YesNo
  BooleanadBSTR8String
OleDbType.BSTR
11           adChapter136(DataReader)           adChar129String 
SqlDbType.Char 10
OleDbType.Char
11charX   CharStringadCurrency6Decimal
SqlDbType.Money 10
OleDbType.Currency
11money
smallmoney
 
8
4
0
 
 
Currency
  CurrencyadDate7DateTime
OleDbType.DBDate
11  
0 
DateTime
2   DateadDBDate133DateTime
OleDbType.DBDate
11           adDBFileTime137DBFileTime 11           adDBTime134DateTime
OleDbType.DBTime
11           adDBTimeStamp135DateTime
SqlDbType.DateTime 10
OleDbType.DBTimeStamp
11datetime
 smalldatetime
 
8
4
0
 
 
DateTime
1DateDateadDecimal14Decimal
OleDbType.Decimal
11       Decimal 7 Variant 6adDouble5Double
SqlDbType.Float 10
OleDbType.Double
11float 
8
0
 
 
Double
FloatDoubleadEmpty0Empty 11           adError10External-Exception
OleDbType.Error
11           adFileTime64DateTime
OleDbType.Filetime
11           adGUID72Guid 
SqlDbType.UniqueIdentifier 10
OleDbType.Guid
11uniqueidentifier516 
 
ReplicationID
2,3    VariantadIDispatch9Object
OleDbType.IDispatch
11           adInteger3Int32
SqlDbType.Int 10
OleDbType.Integer
11

identity 4
int
 

4
4
 
 
AutoNumber
Long Integer
Int 7 LongadIUnknown13Object
OleDbType.IUnknown
11           adLongVarBinary205Byte[]
SqlDbType.VarBinary 10
OleDbType.LongVarBinary
11image2147483647 
 
OLEObject
Long Raw 7
Blob
8VariantadLongVarChar201String
SqlDbType.VarChar 10
OleDbType.LongVarChar
11text2147483647 
Memo 1, 2
Hyperlink
1, 2Long 7
Clob
8StringadLongVarWChar203String
SqlDbType.NText 10
OleDbType.VarWChar
11ntext 51073741823 
Memo 3
Hyperlink
3NClob 8StringadNumeric131Decimal
SqlDbType.Decimal 10
OleDbType.Decimal
11decimal
numeric
 
9
 
 
 
Decimal
3Decimal
Integer
Number
SmallInt
Variant 6adPropVariant138Object
OleDbType.PropVariant
11           adSingle4Single
SqlDbType.Real 10
OleDbType.Single

[1] [2]  下一页

打印本文 打印本文 关闭窗口 关闭窗口
ADO 数据类型转换表
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1811  更新时间:2009/4/23 10:49:50  文章录入:mintao  责任编辑:mintao

ADO 数据类型转换表

http://www.able-consulting.com/ADODataTypeEnum.htm

The following table shows the ADO Data Type mapping between Visual Basic, Access, SQL Server, Oracle, and the .NET Framework.

View printable version

ADO
DataType
Enum
ADO
DataType
Enum
Value
.NET
Framework
SQL
Server
Size Access Oracle Visual
Basic
6.0
打印本文 打印本文 关闭窗口 关闭窗口