日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

ADO 数据类型转换表[转]

發布時間:2024/4/17 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ADO 数据类型转换表[转] 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
ADO 數據類型轉換表[轉] ?

ADO 數據類型轉換表
The following table shows the ADO Data Type mapping between Visual Basic, Access, SQL Server, Oracle, and the .NET Framework.

ADO
DataType
Enum
ADO
DataType
Enum
Value
.NET
Framework
SQL
Server
SizeAccessOracleVisual
Basic
6.0
adBigInt20Int64
SqlDbType.BigInt10
OleDbType.BigInt 11
bigint 98??Variant
adBinary128Byte[]
SqlDbType.VarBinary10
OleDbType.Binary 11
binary
timestamp
50
8
?Raw 7Variant
adBoolean11Boolean
SqlDbType.Bit10
OleDbType.Boolean 11
bit
1
2
?
?
YesNo
?Boolean
adBSTR8String
OleDbType.BSTR 11
?????
adChapter136(DataReader)?????
adChar129String?
SqlDbType.Char10
OleDbType.Char 11
charX?CharString
adCurrency6Decimal
SqlDbType.Money 10
OleDbType.Currency 11
money
smallmoney
?
8
4
0
?
?
Currency
?Currency
adDate7DateTime
OleDbType.DBDate 11
?
0
?
DateTime 2
?Date
adDBDate133DateTime
OleDbType.DBDate 11
?????
adDBFileTime137DBFileTime 11?????
adDBTime134DateTime
OleDbType.DBTime 11
?????
adDBTimeStamp135DateTime
SqlDbType.DateTime10
OleDbType.DBTimeStamp 11
datetime
?smalldatetime
?
8
4
0
?
?
DateTime 1
DateDate
adDecimal14Decimal
OleDbType.Decimal 11
???Decimal 7Variant 6
adDouble5Double
SqlDbType.Float10
OleDbType.Double 11
float?
8
0
?
?
Double
FloatDouble
adEmpty0Empty 11?????
adError10External-Exception
OleDbType.Error 11
?????
adFileTime64DateTime
OleDbType.Filetime 11
?????
adGUID72Guid?
SqlDbType.UniqueIdentifier10
OleDbType.Guid 11
uniqueidentifier516?
?
ReplicationID2,3?
?Variant
adIDispatch9Object
OleDbType.IDispatch 11
?????
adInteger3Int32
SqlDbType.Int10
OleDbType.Integer 11

identity 4
int
?

4
4
?
?
AutoNumber
Long Integer
Int 7Long
adIUnknown13Object
OleDbType.IUnknown 11
?????
adLongVarBinary205Byte[]
SqlDbType.VarBinary10
OleDbType.LongVarBinary 11
image2147483647?
?
OLEObject
Long Raw 7
Blob 8
Variant
adLongVarChar201String
SqlDbType.VarChar10
OleDbType.LongVarChar 11
text2147483647?
Memo 1, 2
Hyperlink 1, 2
Long 7
Clob 8
String
adLongVarWChar203String
SqlDbType.NText10
OleDbType.VarWChar 11
ntext 51073741823?
Memo 3
Hyperlink 3
NClob 8String
adNumeric131Decimal
SqlDbType.Decimal10
OleDbType.Decimal 11
decimal
numeric
?
9
?
?
?
Decimal 3
Decimal
Integer
Number
SmallInt
Variant 6
adPropVariant138Object
OleDbType.PropVariant 11
?????
adSingle4Single
SqlDbType.Real10
OleDbType.Single 11
real4?
?
Single
?Single
adSmallInt2Int16,
SqlDbType.SmallInt10
OleDbType.SmallInt 11
smallInt2?
?
Integer
?Integer
adTinyInt16Byte
OleDbType.TinyInt 11
?????
adUnsignedBigInt21UInt64
OleDbType.UnsignedBigInt 11
?????
adUnsignedInt19UInt32
OleDbType.UnsignedInt 11
?????
adUnsignedSmallInt18UInt16
OleDbType.UnsignedSmallInt 11
?????
adUnsignedTinyInt17Byte
SqlDbType.TinyInt10
OleDbType.UnsignedTinyInt 11
tinyInt1?
?
Byte
?Byte
adUserDefined132??????
adVarBinary204Byte[]?
SqlDbType.VarBinary10
OleDbType.VarBinary 11
varbinary50?
?
ReplicationID 1
?Variant
adVarChar200String
SqlDbType.VarChar10
OleDbType.VarChar 11
varcharX?
?
Text 1, 2
VarCharString
adVariant12Object
SqlDbType.Variant10
OleDbType.Variant 11
sql_variant 98016?VarChar2Variant
adVarNumeric139OleDbType.VarNumeric 11?????
adVarWChar202String
SqlDbType.NVarChar10
OleDbType.VarWChar 11
nvarchar 5X?
?
Text 3
NVarChar2String
adWChar130String
SqlDbType.NChar10
OleDbType.WChar 11
nchar 5X??String

?

1 - ODBC Driver (3.51.171300):? Microsoft Access Driver (*.mdb),??? Access 97 (3.5 format)?
2 - OLE DB Provider: Microsoft.Jet.OLEDB.3.51,?? Access 97 (3.5 format)??
3 - OLE DB Provider: Microsoft.Jet.OLEDB.4.0 ,?? Access 2000 (4.0 format)?
4 - OLE DB Provider: SQLOLEDB,?? SQL Server 6.5?
5 - OLE DB Provider: SQLOLEDB,?? SQL Server 7.0?+
6 - The VB Decimal data type can only be used within a Variant, that is, you cannot declare
???? a VB variable to be of type Decimal.?
7 - Oracle 8.0.x?? Note: DECIMAL and INT are synonyms for NUMBER and NUMBER(10) respectively.
8 - Oracle 8.1.x?
9 - OLE DB Provider: SQLOLEDB, SQL Server 2000 +
10 - SQL Server .NET Data Provider (via System.Data.SqlTypes)
11 - OLE DB .NET Data Provider (via System.Data.OleDb)

posted on 2007-08-24 12:46?Seraph's Zone(WelCome) 閱讀(...) 評論(...) 編輯 收藏

轉載于:https://www.cnblogs.com/Wang-Seraph/archive/2007/08/24/868163.html

總結

以上是生活随笔為你收集整理的ADO 数据类型转换表[转]的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。