diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs index 8038220844..c35d4b64ac 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIProxy.cs @@ -685,7 +685,7 @@ private bool InferConnectionDetails() int commaIndex = _dataSourceAfterTrimmingProtocol.IndexOf(CommaSeparator); - int backSlashIndex = _dataSourceAfterTrimmingProtocol.IndexOf(PipeBeginning); + int backSlashIndex = _dataSourceAfterTrimmingProtocol.IndexOf(BackSlashCharacter); // Check the parameters. The parameters are Comma separated in the Data Source. The parameter we really care about is the port // If Comma exists, the try to get the port number