Understanding the JDBC Driver Data Types

Microsoft SQL Server JDBC Driver supports the use of JDBC basic and advanced data types within a Java application that uses SQL Server as its database.

The JDBC type system mediates the conversion between SQL Server data types and Java language types and objects. The JDBC types are modeled on the SQL-92 and SQL-99 types. The JDBC driver adheres to the JDBC specification and is designed to provide the right balance between predictability and flexibility.

The topics in this section describe how to use the basic and advanced data types, and how data types can be converted into other data types.

In This Section

Topic

Description

Using Basic Data Types

Describes the JDBC basic data types. Includes examples of how to work with the data types by using result sets, parameterized queries, and stored procedures.

Configuring How java.sql.Time Values are Sent to the Server

Describes how the JDBC Driver generates dates.

Using Advanced Data Types

Describes the JDBC advanced data types.

Understanding Data Type Differences

Describes differences between the various JDBC driver data types.

Understanding Data Type Conversions

Describes how data type conversion is handled when using getter and setter methods.

National Character Set Support

Describes the support for the national character set types.

Supporting XML Data

Describes the SQLXML interface. Also describes how to read and write an XML data from and to the relational database with the SQLXML Java data type.

Wrappers and Interfaces

Discusses the interfaces that have the SQL Server JDBC driver specific methods and constants that allow an application server to create a proxy of the class, Also discusses supports for the the java.sql.Wrapper interface.

See Also

Other Resources

Overview of the JDBC Driver