SQLServerBulkCopy consider caching table metadata #1557
Labels
Backlog
The topic in question has been recognized and added to development backlog
Enhancement
An enhancement to the driver. Lower priority than bugs.
I'm using driver version 9.2.1 and I see the following code when SQLServerBulkCopy is enabled in class SQLServerPreparedStatement line 1986:
try (SQLServerStatement stmt = (SQLServerStatement) connection.createStatement( ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, connection.getHoldability(), stmtColumnEncriptionSetting); SQLServerResultSet rs = stmt .executeQueryInternal("sp_executesql N'SET FMTONLY ON SELECT * FROM " + Util.escapeSingleQuotes(tableName) + " '")) {
That executeQueryInternal mades a round-trip to database but its result should be cached for better performance.
The text was updated successfully, but these errors were encountered: