Enumerates the SQL Anywhere .NET database data types.
Visual Basic Public Enum SADbType
C# public enum SADbType
The table below lists which .NET types are compatible with each SADbType. In the case of integral types, table columns can always be set using smaller integer types, but can also be set using larger types as long as the actual value is within the range of the type.
SADbType |
Compatible .NET type |
C# built-in type |
Visual Basic built-in type |
---|---|---|---|
BigInt | System. Int64 | long | Long |
Binary, VarBinary | System. Byte[], or System. Guid if size is 16 | byte[] | Byte() |
Bit | System. Boolean | bool | Boolean |
Char, VarChar | System. String | String | String |
Date | System. DateTime | DateTime (no built-in type) | Date |
DateTime, TimeStamp | System. DateTime | DateTime (no built-in type) | Date |
Decimal, Numeric | System. String | decimal | Decimal |
Double | System. Double | double | Double |
Float, Real | System. Single | float | Single |
Image | System. Byte[] | byte[] | Byte() |
Integer | System. Int32 | int | Integer |
LongBinary | System. Byte[] | byte[] | Byte() |
LongNVarChar | System. String | String | String |
LongVarChar | System. String | String | String |
Money | System. String | decimal | Decimal |
NChar | System. String | String | String |
NText | System. String | String | String |
Numeric | System. String | decimal | Decimal |
NVarChar | System. String | String | String |
SmallDateTime | System. DateTime | DateTime (no built-in type) | Date |
SmallInt | System. Int16 | short | Short |
SmallMoney | System. String | decimal | Decimal |
SysName | System. String | String | String |
Text | System. String | String | String |
Time | System. TimeSpan | TimeSpan (no built-in type) | TimeSpan (no built-in type) |
TimeStamp | System. DateTime | DateTime (no built-in type) | Date |
TinyInt | System. Byte | byte | Byte |
UniqueIdentifier | System. Guid | Guid (no built-in type) | Guid (no built-in type) |
UniqueIdentifierStr | System. String | String | String |
UnsignedBigInt | System. UInt64 | ulong | UInt64 (no built-in type) |
UnsignedInt | System. UInt32 | uint | UInt64 (no built-in type) |
UnsignedSmallInt | System. UInt16 | ushort | UInt64 (no built-in type) |
Xml | System. System.Xml | String | String |
Binary columns of length 16 are fully compatible with the UniqueIdentifier type.
Member name | Description | Value |
---|---|---|
BigInt |
Signed 64-bit integer. |
1 |
Binary |
Binary data, with a specified maximum length. The enumeration values Binary and VarBinary are aliases of each other. |
2 |
Bit |
1-bit flag. |
3 |
Char |
Character data, with a specified length. This type always supports Unicode characters. The types Char and VarChar are fully compatible. |
4 |
Date |
Date information. |
5 |
DateTime |
Timestamp information (date, time). The enumeration values DateTime and TimeStamp are aliases of each other. |
6 |
Decimal |
Exact numerical data, with a specified precision and scale. The enumeration values Decimal and Numeric are aliases of each other. |
7 |
Double |
Double precision floating-point number (8 bytes). |
8 |
Float |
Single precision floating-point number (4 bytes). The enumeration values Float and Real are aliases of each other. |
9 |
Image |
Stores binary data of arbitrary length. |
10 |
Integer |
Unsigned 32-bit integer. |
11 |
LongBinary |
Binary data, with variable length. |
12 |
LongNVarchar |
Character data in the NCHAR character set, with variable length. This type always supports Unicode characters. |
13 |
LongVarbit |
Bit arrays, with variable length. |
14 |
LongVarchar |
Character data, with variable length. This type always supports Unicode characters. |
15 |
Money |
Monetary data. |
16 |
NChar |
Stores Unicode character data, up to 8191 characters. |
17 |
NText |
Stores Unicode character data of arbitrary length. |
18 |
Numeric |
Exact numerical data, with a specified precision and scale. The enumeration values Decimal and Numeric are aliases of each other. |
19 |
NVarChar |
Stores Unicode character data, up to 8191 characters. |
20 |
Real |
Single precision floating-point number (4 bytes). The enumeration values Float and Real are aliases of each other. |
21 |
SmallDateTime |
A domain, implemented as TIMESTAMP. |
22 |
SmallInt |
Signed 16-bit integer. |
23 |
SmallMoney |
Stores monetary data that is less than one million currency units. |
24 |
SysName |
Stores character data of arbitrary length. |
25 |
Text |
Stores character data of arbitrary length. |
26 |
Time |
Time information. |
27 |
TimeStamp |
Timestamp information (date, time). The enumeration values DateTime and TimeStamp are aliases of each other. |
28 |
TinyInt |
Unsigned 8-bit integer. |
29 |
UniqueIdentifier |
Universally Unique Identifier (UUID/GUID). |
30 |
UniqueIdentifierStr |
A domain, implemented as CHAR( 36 ). UniqueIdentifierStr is used for remote data access when mapping Microsoft SQL Server uniqueidentifier columns. |
31 |
UnsignedBigInt |
Unsigned 64-bit integer. |
32 |
UnsignedInt |
Unsigned 32-bit integer. |
33 |
UnsignedSmallInt |
Unsigned 16-bit integer. |
34 |
VarBinary |
Binary data, with a specified maximum length. The enumeration values Binary and VarBinary are aliases of each other. |
35 |
VarBit |
Bit arrays that are from 1 to 32767 bits in length. |
36 |
VarChar |
Character data, with a specified maximum length. This type always supports Unicode characters. The types Char and VarChar are fully compatible. |
37 |
Xml |
XML data. This type stores character data of arbitrary length, and is used to store XML documents. |
38 |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |