I have a Java application that's using HikariCP for its connection pooling solution. While lightning-fast, HikariCP doesn't have a lot of configuration options, by design, and that's all fine and dandy except I need to set a connection property, and while a DataSource like Tomcat's gives me the ability to do something like:
Hikari's DataSource object doesn't have such a method.
My options, as far as I've been able to tell are to either create a DataSource object manually and pass it to Hikari to wrap it in it's own class, or to include the connection property as part of the connection URL.
(Just to make sure we're on the same page, I'm talking about the "sendStringParametersAsUnicode" flag as described in this document: Setting the connection properties - SQL Server)
The question (also known as "so far this question seems to belong in StackOverflow but hopefully you kept reading"):
Is there a way, on the database side, to see the connection properties of an active connection? In SSMS or some other tool? I tried SSMS's activity monitor on the target database, and right clicking on anything that seemed right-clickable, but nothing mentioned the properties of the open connections. Is this even possible?
I'd like to see the properties so I can double-check if my two options described above for setting this flag actually work.