Changing TDS port from 1433 - wiltondb/wiltondb GitHub Wiki

On this page:

Prerequisites

  1. Install WiltonDB
  2. Setup TDS connection from SSMS

Default port taken by MSSQL

When WiltonDB installation is completed and the Windows service is started, it tries to bind to port 1433 to listen to TDS connections. If MSSQL is running on the same machine:

tdsport_04

then port 1433 may be alredy taken by it, you can check this in SQL Server Configuration Manager:

tdsport_01

tdsport_02

In this case WiltonDB service will start successfully, but will only listen on PostgreSQL 5432 port.

Changing the port using Configuration tool

Run the WiltonDB Configuration tool using <install_dir>/bin/wdb_config.exe path:

config_01

Enter the password and press "Load Settings" button:

config_02

In the left top drop-down menu instead of "All Settings" select "Networking Only":

config_03

Double-click the babelfishpg_tds.port setting, change the value from 1433 to some other port number (for example: 7433) and press "Apply change" button:

config_04

When the change is applied, note the "DB restart required: YES" message:

config_05

Restart WiltonDB service using Windows Service Control Manager:

config_06

Press "Reload settings" button to check the the setting value has actually changed:

config_07

Connecting to custom port from SSMS

To connect to custom TDS port from SSMS use hostname,port syntax, note that the comma ',' is used as a delimiter instead of a colon ':':

ssms_01