| .NET Framework type |
System.Data.DbType |
SqlDbType |
OleDbType |
OdbcType |
OracleType |
| bool |
Boolean |
Bit |
Boolean |
Bit |
Byte |
| byte |
Byte |
TinyInt |
UnsignedTinyInt |
TinyInt |
Byte |
| byte[ ] |
Binary |
VarBinary. This implicit conversion will fail if the byte array is greater than the maximum size of a VarBinary, which is 8000 bytes. For byte arrays larger than 8000 bytes, explicitly set the SqlDbType. |
VarBinary |
Binary |
Raw |
| char |
|
Inferring a SqlDbType from char is not supported. |
Char |
Char |
Byte |
| DateTime |
DateTime |
DateTime |
DBTimeStamp |
DateTime |
DateTime |
| Decimal |
Decimal |
Decimal |
Decimal |
Numeric |
Number |
| double |
Double |
Float |
Double |
Double |
Double |
| float |
Single |
Real |
Single |
Real |
Float |
| Guid |
Guid |
UniqueIdentifier |
Guid |
UniqueIdentifier |
Raw |
| Int16 |
Int16 |
SmallInt |
SmallInt |
SmallInt |
Int16 |
| Int32 |
Int32 |
Int |
Int |
Int |
Int32 |
| Int64 |
Int64 |
BitInt |
BigInt |
BigInt |
Number |
| object |
Object |
Variant |
Variant |
Inferring an OdbcType from Object is not supported. |
Blob |
| string |
String |
NVarChar. This implicit conversion will fail if the string is greater than the maximum size of an NVarChar, which is 4000 characters. For strings greater than 4000 characters, explicitly set the SqlDbType. |
VarWChar |
NVarChar |
NVarChar |
| TimeSpan |
Time |
Inferring a SqlDbType from TimeSpan is not supported. |
DBTime |
Time |
DateTime |
| UInt16 |
UInt16 |
Inferring a SqlDbType from UInt16 is not supported. |
UnsignedSmallInt |
Int |
UInt16 |
| UInt32 |
UInt32 |
Inferring a SqlDbType from UInt32 is not supported. |
UnsignedInt |
BigInt |
UInt32 |
| UInt64 |
UInt64 |
Inferring a SqlDbType from UInt64 is not supported. |
UnsignedBigInt |
Numeric |
Number |
| |
AnsiString |
VarChar |
VarChar |
VarChar |
VarChar |
| |
AnsiStringFixedLength |
Char |
Char |
Char |
Char |
| |
Currency |
Money |
Currency |
Inferring an OdbcType from Currency is not supported. |
Number |
| |
Date |
Inferring a SqlType from Date is not supported. |
DBDate |
Date |
DateTime |
| |
SByte |
Inferring a SqlType from SByte is not supported. |
TinyInt |
Inferring an OdbcType from SByte is not supported. |
SByte |
| |
StringFixedLength |
NChar |
WChar |
NChar |
NChar |
| |
Time |
Inferring a SqlType from Time is not supported. |
DBTime |
Time |
DateTime |
| |
VarNumeric |
Inferring a SqlDbType from VarNumeric is not supported. |
VarNumeric |
Inferring an OdbcType from VarNumeric is not supported. |
Number |