Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.67 KB

File metadata and controls

40 lines (29 loc) · 1.67 KB
title moveToInsertRow Method (SQLServerResultSet)
description moveToInsertRow Method (SQLServerResultSet)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerResultSet.moveToInsertRow
apitype Assembly

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