diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java index b6e789b5c..25e67ef0c 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java @@ -128,6 +128,12 @@ private void setPreparedStatementHandle(int handle) { */ private boolean useBulkCopyForBatchInsert; + /** Returns the prepared statement SQL */ + @Override + public String toString() { + return "sp_executesql SQL: " + preparedSQL; + } + /** * Returns the prepared statement's useBulkCopyForBatchInsert value. *