--- title: "setCursorName Method (SQLServerStatement) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual apiname: - "SQLServerStatement.setCursorName" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 3f3ec4f2-103a-4e16-9206-c5bd8639f946 author: David-Engel ms.author: v-daenge --- # setCursorName Method (SQLServerStatement) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets the SQL cursor name to the given String, which will be used by subsequent execute methods. > [!NOTE] > This method is not currently supported by the [!INCLUDE[jdbcNoVersion](../../../includes/jdbcnoversion_md.md)]. Calling this method has no effect. ## Syntax ``` public final void setCursorName(java.lang.String name) ``` #### Parameters *name* A **String** that contains the cursor name. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This setCursorName method is specified by the setCursorName method in the java.sql.Statement interface. ## See Also [SQLServerStatement Members](../../../connect/jdbc/reference/sqlserverstatement-members.md) [SQLServerStatement Class](../../../connect/jdbc/reference/sqlserverstatement-class.md)