Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 2.8 KB

File metadata and controls

45 lines (31 loc) · 2.8 KB
title SQLServerCallableStatement Class | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
ms.assetid 30710a63-c05d-47d9-9cf9-c087a1c76373
author David-Engel
ms.author v-daenge

SQLServerCallableStatement Class

[!INCLUDEDriver_JDBC_Download]

Lets you specify the stored procedure name to call along with input and output parameters. This class also provides the ability to retrieve the return status value with the ? = call( ?, ..) syntax.

Package: com.microsoft.sqlserver.jdbc

Implements: ISQLServerCallableStatement

Extends: SQLServerPreparedStatement

Syntax

  
public final class SQLServerCallableStatement  

Remarks

SQLServerCallableStatement lets you specify the stored procedure name to call along with input and output parameters. SQLServerCallableStatement also provides the ability to retrieve the return status value with the ? = call( ?, ..) syntax.

This class supports unwrapping to SQLServerCallableStatement class, ISQLServerCallableStatement interface, java.sql.CallableStatement interface, and the classes and interfaces supported by SQLServerPreparedStatement for unwrapping. For more information, see Wrappers and Interfaces.

When one of the SQLServerCallableStatement set methods is called for a type, if that type conflicts with the type specified with registerOutParameter, the type specified by the last SQLServerCallableStatement set method is used. However, this may cause incompatible data type conversion errors. If a SQLServerCallableStatement set method is not called, the type specified with the first registerOutParameter call is used.

The [!INCLUDEssNoVersion] JDBC Driver 3.0 is compliant with the JDBC 4.0 recommendation that a result set and update counts must be retrieved before retrieving OUT parameters. If OUT parameters are retrieved before the result set and update counts have been completely processed, any result sets and update counts that have not been processed are lost.

See Also

SQLServerCallableStatement Members
JDBC Driver API Reference