ServerName
- Last Updated: January 24, 2023
- 1 minute read
- DataDirect Connectors
- JDBC
- Microsoft SQL Server 6.0
- Documentation
Purpose
Specifies the name or IP address of the server to which you want to connect.
Valid values
IP_address |
named_server | named_instance | virtual_network_name
where:
IP_address- is the IP address of the server to which you want to connect. For
example, you can enter
199.226.224.34. The IP address can be specified in either IPv4 or IPv6 format, or a combination of the two. See IP addresses for details about these formats. named_server- is the named server address of the server to which you want to connect. For example, you can enter MyServer.
named_instance- is a named instance of Microsoft SQL Server. The named instance should
be specified as
server_name\\instance_name, whereserver_nameis the IP address and instance_name is the name of the instance to which you want to connect on the specified server. For example,server1\\instance1. virtual_network_name- is the virtual network name (VNN) of the availability group listener when using an Always On Availability Group.
Notes
- For Microsoft Azure Synapse Analytics and Microsoft Analytics Platform System (APS), specifying an IP address for the server is not supported. You must provide a named server to connect.
Data source method
public String getServerName()
public void setServerName(String)
Default
None
Data type
String