Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Sample JDBC Driver Applications

The Microsoft SQL Server JDBC Driver sample applications demonstrate various features of the JDBC driver. Additionally, they demonstrate good programming practices that you can follow when using the JDBC driver with a SQL Server database. 

All the sample applications are contained in *.java code files that can be compiled and run on your local computer, and they are located in various subfolders in the following location:

<installation directory>\sqljdbc_<version>\<language>\help\samples

The topics in this section describe how to configure and run the sample applications, and include a discussion of what the sample applications demonstrate.



Connecting and Retrieving Data

These sample applications demonstrate how to connect to a SQL Server database. They also demonstrate different ways in which to retrieve data from a SQL Server database.

Working with Data Types (JDBC)

These sample applications demonstrate how to use the JDBC driver data type methods to work with data in a SQL Server database.

Working with Result Sets

These sample applications demonstrate how to use result sets to process data contained in a SQL Server database.

Working with Large Data

These sample applications demonstrate how to use adaptive buffering to retrieve large-value data from a SQL Server database without the overhead of server cursors.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft