Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.78 KB

File metadata and controls

45 lines (34 loc) · 1.78 KB
title moveToInsertRow Method (SQLServerResultSet) | 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
SQLServerResultSet.moveToInsertRow
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid f3c54bfe-d5b7-4f6e-ae6c-3e8954e5b1c9
author David-Engel
ms.author v-daenge

moveToInsertRow Method (SQLServerResultSet)

[!INCLUDEDriver_JDBC_Download]

Moves the cursor to the insert row.

Syntax

  
public void moveToInsertRow()  

Exceptions

SQLServerException

Remarks

This moveToInsertRow method is specified by the moveToInsertRow method in the java.sql.ResultSet interface.

The current cursor position is remembered while the cursor is positioned on the insert row. The insert row is a special row that is associated with an updatable result set. It is essentially a buffer where a new row can be constructed by calling the updater methods before adding the row to the result set.

Only the updater, getter, and insertRow methods can be called when the cursor is on the insert row. All the columns in a result set must be given a value each time this method is called, and before calling insertRow. An updater method must be called before a getter method can be called on a column value.

See Also

SQLServerResultSet Members
SQLServerResultSet Class