Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.77 KB

File metadata and controls

58 lines (43 loc) · 1.77 KB
title setString Method (long, java.lang.String) | 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
SQLServerClob.setString (long, java.lang.String)
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 1b2190e9-5ace-497a-8554-0e913ea9b0cb
author David-Engel
ms.author v-daenge

setString Method (long, java.lang.String)

[!INCLUDEDriver_JDBC_Download]

Writes the given String to the CLOB starting at the given position.

Syntax

  
public int setString(long pos,  
                     java.lang.String s)  

Parameters

pos

The position at which to start writing to the CLOB.

s

The String to be written to the CLOB.

Return Value

The number of characters written.

Exceptions

java.sql.SQLException

Remarks

This setString method is specified by the setString method in the java.sql.Clob interface.

Character data is overwritten starting at the specified position and can over-run the initial length of the CLOB. Specifying a position+1 value will append the string. Specifying a position+2 or greater (or zero or less) values will cause a position error to be thrown.

See Also

setString Method (SQLServerClob)
SQLServerClob Methods
SQLServerClob Members
SQLServerClob Class