How to specify MS SQL Server port to connect to

If you are connecting to a SQL Server instance that is not listening for connections on default port (1433), you need to specify the port that the server is listening to.

To specify a port, use a comma separator after the server name / IP address –

192.168.1.10,5001

192.168.1.10,5001\MyInstance

First example above will connect to default instance on port 5001, and second example will connect to named instance on port 5001.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s