---
title: "SQL Toolkit port definition behaviour"
description: "The SQL Toolkit sampler port field shows a greyed out default port value but does not use it automatically. The sampler obtains the port from the database client, so users must specify a different port if the default is incorrect."
url: "https://docs.itrsgroup.com/docs/faq/geneos/16716824451997-geneos-sql-toolkit-port-definition-behaviour/index.html"
---
You may notice when trying to create a SQL-Toolkit sampler that the port field is optional and greyed out but there is a greyed out value specified.

For example:

![Geneos - SQL Toolkit port definition behaviour](https://docscdn.itrsgroup.com/faq/images/geneos/16716824451997-16716824444061-mceclip0.png)

You can see in the above screenshot that the value 1433 is specified and greyed out. This is an indication that the default value for the database type in question is port 1433. This does **not** mean that this is the value that is being specified by the plugin by default.

The sampler will obtain its value directly from the database client. This means that you do not need to explicitly specify this.

A common pitfall is to assume that the sampler is using the greyed out port value as a default - it is not. In the case below you can observe the following to illustrate this.

A user believes their SQL-Server database is using the default port 1433 and they have explicitly specified that value.

![Geneos - SQL Toolkit port definition behaviour](https://docscdn.itrsgroup.com/faq/images/geneos/16716824451997-16716824444829-mceclip1.png)

Result

An error - HYT00 Login timeout expired08001 A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible.

![Geneos - SQL Toolkit port definition behaviour](https://docscdn.itrsgroup.com/faq/images/geneos/16716824451997-16716824445085-mceclip2.png)

The user finds out the port value is in fact 1435

![Geneos - SQL Toolkit port definition behaviour](https://docscdn.itrsgroup.com/faq/images/geneos/16716824451997-16716824445853-mceclip4.png)

The user can either choose to explicitly specify this value in the plugin configuration or it can be removed.

![Geneos - SQL Toolkit port definition behaviour](https://docscdn.itrsgroup.com/faq/images/geneos/16716824451997-16716824446365-mceclip5.png)

![Geneos - SQL Toolkit port definition behaviour](https://docscdn.itrsgroup.com/faq/images/geneos/16716824451997-16716837219741-mceclip6.png)


