Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere .NET 2.0 API Reference

GetDataSources method Next Page

SADbType enumeration


Enumerates the SQL Anywhere .NET database data types.

Syntax

Visual Basic

Public Enum SADbType

C#

public enum SADbType

Remarks

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
BigIntSystem.[external link] Int64longLong
Binary, VarBinarySystem.[external link] Byte[], or System.[external link] Guid if size is 16byte[]Byte()
BitSystem.[external link] BooleanboolBoolean
Char, VarCharSystem.[external link] StringStringString
DateSystem.[external link] DateTimeDateTime (no built-in type)Date
DateTime, TimeStampSystem.[external link] DateTimeDateTime (no built-in type)Date
Decimal, NumericSystem.[external link] StringdecimalDecimal
DoubleSystem.[external link] DoubledoubleDouble
Float, RealSystem.[external link] SinglefloatSingle
ImageSystem.[external link] Byte[]byte[]Byte()
IntegerSystem.[external link] Int32intInteger
LongBinarySystem.[external link] Byte[]byte[]Byte()
LongNVarCharSystem.[external link] StringStringString
LongVarCharSystem.[external link] StringStringString
MoneySystem.[external link] StringdecimalDecimal
NCharSystem.[external link] StringStringString
NTextSystem.[external link] StringStringString
NumericSystem.[external link] StringdecimalDecimal
NVarCharSystem.[external link] StringStringString
SmallDateTimeSystem.[external link] DateTimeDateTime (no built-in type) Date
SmallIntSystem.[external link] Int16shortShort
SmallMoneySystem.[external link] StringdecimalDecimal
SysNameSystem.[external link] StringStringString
TextSystem.[external link] StringStringString
TimeSystem.[external link] TimeSpanTimeSpan (no built-in type)TimeSpan (no built-in type)
TimeStampSystem.[external link] DateTimeDateTime (no built-in type)Date
TinyIntSystem.[external link] BytebyteByte
UniqueIdentifierSystem.[external link] GuidGuid (no built-in type)Guid (no built-in type)
UniqueIdentifierStrSystem.[external link] StringStringString
UnsignedBigIntSystem.[external link] UInt64ulongUInt64 (no built-in type)
UnsignedIntSystem.[external link] UInt32uintUInt64 (no built-in type)
UnsignedSmallIntSystem.[external link] UInt16ushortUInt64 (no built-in type)
XmlSystem.[external link] System.XmlStringString

Binary columns of length 16 are fully compatible with the UniqueIdentifier type.

Members
Member nameDescriptionValue
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
See also