TdsSqlServerBrowserOptions Class
Configures the SQL Server Browser responder, which lets clients connect with an instance name (host\INSTANCE).
public sealed class TdsSqlServerBrowserOptionsRemarks
The responder answers the SQL Server Resolution Protocol (MC-SQLR) on a UDP port. Clients send it the instance name and receive the TCP port of the server.
Constructors
| Name | Description |
|---|---|
| TdsSqlServerBrowserOptions() |
TdsSqlServerBrowserOptions()
TdsSqlServerBrowserOptions.cspublic TdsSqlServerBrowserOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| BindAddress | Gets or sets the address the UDP socket binds to. |
| InstanceName | Gets or sets the instance name the responder advertises. |
| Port | Gets or sets the UDP port to listen on. |
| ServerName | Gets or sets the server name the responder advertises, or null to use Environment.MachineName. |
BindAddress
TdsSqlServerBrowserOptions.csInstanceName
TdsSqlServerBrowserOptions.csGets or sets the UDP port to listen on.
public int Port { get; set; }Property value
Remarks
Clients only query TdsSqlServerBrowserOptions.DefaultPort. Use 0 to bind a free port, for example in tests that send the requests themselves.
ServerName
TdsSqlServerBrowserOptions.csGets or sets the server name the responder advertises, or null to use Environment.MachineName.
public string? ServerName { get; set; }Property value
Constants
| Name | Description |
|---|---|
| DefaultInstanceName | The instance name of a default SQL Server instance. |
| DefaultPort | The UDP port of the SQL Server Browser service. Clients always send their requests to this port. |
DefaultInstanceName
The instance name of a default SQL Server instance.
public const string DefaultInstanceName = "MSSQLSERVER"DefaultPort
The UDP port of the SQL Server Browser service. Clients always send their requests to this port.
public const int DefaultPort = 1434