Using Statements with SQL
When you work with data in a SQL Server database by using the Microsoft SQL Server JDBC Driver and inline SQL statements, there are different classes that you can use. Which class you use depends on the type of SQL statement that you want to run.
If you need to use SQL statements that contain both IN and OUT parameters, you must implement them as stored procedures and call them by using the SQLServerCallableStatement class. For more information about using stored procedures, see Using Statements with Stored Procedures.
The following sections describe the different scenarios for working with data in a SQL Server database by using SQL statements.
Describes how to use SQL statements that contain no parameters.
Describes how to use SQL statements that contain parameters.
Describes how to use SQL statements to modify database objects.
Describes how to use SQL statements to modify data in a database.