SqlConnectionIPAddressPreference Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies a value for IP address preference during a TCP connection.
public enum class SqlConnectionIPAddressPreference
public enum SqlConnectionIPAddressPreference
type SqlConnectionIPAddressPreference =
Public Enum SqlConnectionIPAddressPreference
- Inheritance
-
SqlConnectionIPAddressPreference
Fields
Name | Value | Description |
---|---|---|
IPv4First | 0 | Connects using IPv4 address(es) first. If the connection fails, try IPv6 address(es), if provided. This is the default value. |
IPv6First | 1 | Connect using IPv6 address(es) first. If the connection fails, try IPv4 address(es), if available. |
UsePlatformDefault | 2 | Connects with IP addresses in the order the underlying platform or operating system provides them. |
Remarks
If Multi Subnet Failover
is set to true
, this setting has no effect.