Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.32 KB

File metadata and controls

41 lines (30 loc) · 1.32 KB
title getGeneratedKeys Method (SQLServerStatement)
description getGeneratedKeys Method (SQLServerStatement)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerStatement.getGeneratedKeys
apitype Assembly

getGeneratedKeys Method (SQLServerStatement)

[!INCLUDEDriver_JDBC_Download]

Retrieves any auto-generated keys that are created as a result of running this SQLServerStatement object.

Syntax

  
public final java.sql.ResultSet getGeneratedKeys()  

Return Value

A ResultSet object.

Exceptions

SQLServerException

Remarks

This getGeneratedKeys method is specified by the getGeneratedKeys method in the java.sql.Statement interface.

For more information about how to use this method, see Using Auto Generated Keys.

See Also

SQLServerStatement Members
SQLServerStatement Class