I am unable to connect to the database server instance from the windows command command line to connect MSSQL remote server Database.
Command line command is :
liquibase --changelog-file=“liquibase\dbchangelog.xml” --driver=com.microsoft.sqlserver.jdbc.SQLServerDriver --url=jdbc:sqlserver://DBASTG001\DBASTG;databaseName=Positional_Data; --username=liquibase --password=liquibase update
I enabled inbound port also in the server UDP 1433, 1434
But I am getting below error:
Unexpected error running Liquibase: Connection could not be created to jdbc:sqlserver://DBASTG001\DBASTG;databaseName=Positional_Data; with driver com.microsoft.sqlserver.jdbc.SQLServerDriver. The connection to the host DBASTG001, named instance \dbastg failed. Error: “java.net.SocketTimeoutException: Receive timed out”. Verify the server and instance names and check that no firewall is blocking UDP traffic to port 1434. For SQL Server 2005 or later, verify that the SQL Server Browser Service is running on the host.
Apprecitate the help :-