jdbc database connection to the sql server is created with dynamic ports
Posted on 2014-03-20
Need to create jdbc connection to sql server 2008,The problem is the port is dynamic.
is there any way in which database connection to the server is created with dynamic ports or in simple words without providing the port no.
Driver = com.microsoft.sqlserver.jdbc.SQLServerDriver
XXXX -> This can be any port i.e 1433,1435 etc