I think you will have difficulties finding someone still running ES2 and even harder to find someone who attempts what you are trying.
ES2 is old and not supported by Adobe any more. It runs on unsupported OS versions with an unsupported version of Java and is certfied for an unsupported version of SQL Server.
Trying to connect to SQL Server 2017 would mean that you need newer JDBC drivers. Those might not run on the old Java version. Using a new Java for ES2 most likely will fail.
My best guess is that it is not possible.