There was a necessity to run some SQL queries against production database without abilities of remote access, you know installation of software is also restricted in such kind of environments as well.
Searching a bit through the web I found out a nice tool capable to execute queries over JDBC called Jisql.