When you work with data in a SQL Server database by using the Microsoft SQL Server 2005 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 your SQL statement contains no IN parameters, use the SQLServerStatement class, but if it does contain IN parameters, use the SQLServerPreparedStatement class.
The following sections describe the different scenarios for working with data in a SQL Server database by using SQL statements.
In This Section
Topic | Description |
---|---|
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. |