Table 10-2 through
Table 10-5 list the data types supported by the Sybase data provider:
Table 10-2 lists the data types supported by the Sybase data provider and how they are mapped to the .NET Framework types. You can use the table to infer the data types that are used when a DataSet is filled using a DataAdapter. This table also identifies the accessors to use for accessing the data when a DataReader object is used directly.
NOTE FOR USERS OF SYBASE ADAPTIVE SERVER 12.5.1 AND HIGHER: The DataDirect Connect for ADO.NET Sybase data provider supports extended new limits (XNL) for character and binary columns—columns with lengths greater than 255.
The type of the parameter is specific to each DataDirect Connect for ADO.NET data provider. The Sybase data provider must convert the parameter value to a native format before sending it to the server. The best way for an application to describe a parameter is to use the data provider-specific type enumeration. In generic programming circumstances, the provider-specific type may not be available. In this situation, the data type must be inferred from either the System.Data.DbType or from the .NET Framework type of the parameter’s value.
Table 10-3 shows the mapping that is used if only the System.Data.DbType is specified.
Table 10-4 shows the mapping that the data provider uses to infer a data type if neither the provider-specific type or the System.Data.DbType are provided.
Table 10-5 lists the data types with which the Sybase data provider supports the use of streams as inputs to Long data parameters.