您的位置:首页 > 数据库

ADO 数据类型转换表 oledbtype sqldbtype

2008-04-08 09:55 477 查看

ADO

DataType

Enum

ADO

DataType

Enum

Value

.NET

Framework

SQL

Server
Size
Access

Oracle

Visual

Basic

6.0
adBigInt20Int64

SqlDbType.BigInt
10
OleDbType.BigInt 11
bigint 98Variant
adBinary128Byte[]

SqlDbType.VarBinary
10
OleDbType.Binary 11
binary

timestamp
50

8
Raw
7
Variant
adBoolean11Boolean

SqlDbType.Bit
10


OleDbType.Boolean 11
bit1

2
YesNoBoolean
adBSTR8String

OleDbType.BSTR 11
adChapter136(DataReader)
adChar129String

SqlDbType.Char
10
OleDbType.Char 11
charXCharString
adCurrency6Decimal

SqlDbType.Money
10
OleDbType.Currency 11
money

smallmoney

8

4

0
CurrencyCurrency
adDate7DateTime

OleDbType.DBDate 11
0DateTime 2Date
adDBDate133DateTime

OleDbType.DBDate 11
adDBFileTime137DBFileTime
11
adDBTime134DateTime

OleDbType.DBTime 11
adDBTimeStamp135DateTime

SqlDbType.DateTime
10
OleDbType.DBTimeStamp 11
datetime

smalldatetime

8

4

0
DateTime 1DateDate
adDecimal14Decimal

OleDbType.Decimal 11
Decimal
7
Variant 6
adDouble5Double

SqlDbType.Float
10
OleDbType.Double 11
float8

0
DoubleFloatDouble
adEmpty0Empty
11
adError10External-Exception

OleDbType.Error 11
adFileTime64DateTime

OleDbType.Filetime 11
adGUID72Guid

SqlDbType.UniqueIdentifier
10
OleDbType.Guid 11
uniqueidentifier516ReplicationID2,3 Variant
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: