Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.26 KB

finalize-method-sqlserverresultset.md

File metadata and controls

33 lines (25 loc) · 1.26 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
finalize Method (SQLServerResultSet)
finalize Method (SQLServerResultSet)
David-Engel
v-davidengel
01/19/2017
sql
connectivity
reference
sqljdbc.jar
SQLServerResultSet.finalize
Assembly

finalize Method (SQLServerResultSet)

[!INCLUDEDriver_JDBC_Download]

Explicitly closes this SQLServerResultSet object.

Syntax

  
public void finalize()  

Remarks

Closes the result set if the application does not. This method exists only to conform to the JDBC specification. Because the Java Virtual Machine (JVM) does not guarantee when a finalizer will have a chance to run, applications that neglect to explicitly close their result sets could still deadlock on another statement that is using the same connection and is blocked on a common server resource, such as row locks.

See Also

SQLServerResultSet Members
SQLServerResultSet Class