It is possible to set properties for the JDBC driver on specific instances.
The driver properties dialog looks like this.
The properties you set here will be applied to the JDBC connection on the database. The example above will set the login timeout to 15 seconds for an MS SQLServer instance.
See documentation from the specific dbms platform for legal properties to set on the connection.