diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java index 651505aa2..d32d75ac8 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java @@ -2681,13 +2681,6 @@ private void checkValidColumns(TypeInfo ti) throws SQLServerException { private void checkAdditionalQuery() { while (checkAndRemoveCommentsAndSpace(true)) {} - - // At this point, if localUserSQL is not empty (after removing all whitespaces, semicolons and comments), we - // have a - // new query. reject this. - if (localUserSQL.length() > 0) { - throw new IllegalArgumentException(SQLServerException.getErrString("R_multipleQueriesNotAllowed")); - } } private String parseUserSQLForTableNameDW(boolean hasInsertBeenFound, boolean hasIntoBeenFound,