SAMPLE: Vjparam.exe Demonstrates Parameterized Queries Using JDBC/ODBC Bridge (248188)
The information in this article applies to:
This article was previously published under Q248188 SUMMARY The Vjparam.exe sample demonstrates how to use parameters
with a SQL query using the JDBC/ODBC bridge. It uses the pubs database on a SQL Server back end to show how to:
- Use the java.sql.Statement class to embed a parameter in the query. The result is displayed
after the query executes.
- Use the java.sql.PreparedStatement class to bind parameters with the SELECT statement. The result
set is displayed after the query executes.
- Use the java.sql.CallableStatement class to pass a parameter to a stored procedure.
Modification Type: | Minor | Last Reviewed: | 8/5/2004 |
---|
Keywords: | kbdownload kbfile kbhowto kbJava kbJDBC KB248188 kbAudDeveloper |
---|
|