8 instantiations of SqlConnectionString
System.Data (8)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
587
SqlConnectionString connectionOptions = new
SqlConnectionString
(value);
fx\src\data\System\Data\SqlClient\SqlConnectionFactory.cs (4)
94
SqlConnectionString sseopt = new
SqlConnectionString
(opt, opt.DataSource, true /* user instance=true */, false /* set Enlist = false */);
124
opt = new
SqlConnectionString
(opt, instanceName, false /* user instance=false */, null /* do not modify the Enlist value */);
134
SqlConnectionString result = new
SqlConnectionString
(connectionString);
225
connectionOptions = new
SqlConnectionString
(key.ConnectionString);
fx\src\data\System\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs (1)
85
return (new
SqlConnectionString
(failoverConnectionString)).CreatePermissionSet();
fx\src\data\System\Data\SqlClient\SqlDependency.cs (2)
591
SqlConnectionString connectionStringObject = new
SqlConnectionString
(connectionString);
716
SqlConnectionString connectionStringObject = new
SqlConnectionString
(connectionString);
169 references to SqlConnectionString
System.Data (169)
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (2)
754
var
poolGroupConnectionOptions = _connectionPoolGroup.ConnectionOptions as
SqlConnectionString
;
fx\src\data\System\Data\SqlClient\SqlClientPermission.cs (2)
38
internal SqlClientPermission(
SqlConnectionString
constr) : base(constr) { // for Open
45
DBConnectionString constr = new DBConnectionString(connectionString, restrictions, behavior,
SqlConnectionString
.GetParseSynonyms(), false);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (59)
312
SqlConnectionString
connectionOptions = (
SqlConnectionString
) ConnectionOptions;
357
SqlConnectionString
connString = ConnectionOptions as
SqlConnectionString
;
443
SqlConnectionString
opt = (
SqlConnectionString
)ConnectionOptions;
453
SqlConnectionString
opt = (
SqlConnectionString
)ConnectionOptions;
463
SqlConnectionString
opt = (
SqlConnectionString
)ConnectionOptions;
469
private bool UsesContextConnection(
SqlConnectionString
opt)
474
private bool UsesActiveDirectoryIntegrated(
SqlConnectionString
opt)
479
private bool UsesAuthentication(
SqlConnectionString
opt) {
484
private bool UsesIntegratedSecurity(
SqlConnectionString
opt) {
489
private bool UsesClearUserIdOrPassword(
SqlConnectionString
opt) {
497
internal
SqlConnectionString
.TransactionBindingEnum TransactionBinding {
499
return ((
SqlConnectionString
)ConnectionOptions).TransactionBinding;
503
internal
SqlConnectionString
.TypeSystem TypeSystem {
505
return ((
SqlConnectionString
)ConnectionOptions).TypeSystemVersion;
511
return ((
SqlConnectionString
)ConnectionOptions).TypeSystemAssemblyVersion;
519
return ((
SqlConnectionString
)ConnectionOptions).PoolBlockingPeriod;
525
return ((
SqlConnectionString
)ConnectionOptions).ConnectRetryInterval;
546
SqlConnectionString
connectionOptions = (
SqlConnectionString
)UserConnectionOptions;
561
CheckAndThrowOnInvalidCombinationOfConnectionOptionAndAccessToken((
SqlConnectionString
)ConnectionOptions);
587
SqlConnectionString
connectionOptions = new SqlConnectionString(value);
614
SqlConnectionString
constr = (
SqlConnectionString
)ConnectionOptions;
615
return ((null != constr) ? constr.ConnectTimeout :
SqlConnectionString
.DEFAULT.Connect_Timeout);
635
SqlConnectionString
constr = (
SqlConnectionString
)ConnectionOptions;
636
result = ((null != constr) ? constr.InitialCatalog :
SqlConnectionString
.DEFAULT.Initial_Catalog);
656
SqlConnectionString
constr = (
SqlConnectionString
)ConnectionOptions;
657
result = ((null != constr) ? constr.DataSource :
SqlConnectionString
.DEFAULT.Data_Source);
684
SqlConnectionString
constr = (
SqlConnectionString
)ConnectionOptions;
685
result = ((null != constr) ? constr.PacketSize :
SqlConnectionString
.DEFAULT.Packet_Size);
761
SqlConnectionString
constr = (
SqlConnectionString
)ConnectionOptions;
786
SqlConnectionString
connectionOptions = (
SqlConnectionString
) UserConnectionOptions;
809
if (UsesActiveDirectoryIntegrated((
SqlConnectionString
) ConnectionOptions)) {
813
CheckAndThrowOnInvalidCombinationOfConnectionStringAndSqlCredential((
SqlConnectionString
) ConnectionOptions);
831
private void CheckAndThrowOnInvalidCombinationOfConnectionStringAndSqlCredential(
SqlConnectionString
connectionOptions)
853
private void CheckAndThrowOnInvalidCombinationOfConnectionOptionAndAccessToken(
SqlConnectionString
connectionOptions) {
1212
if (((
SqlConnectionString
)ConnectionOptions).MARS) {
1517
SqlConnectionString
connectionOptions = (
SqlConnectionString
)ConnectionOptions;
1686
SqlConnectionString
constr = (
SqlConnectionString
)ConnectionOptions;
1687
return ((null != constr) ? constr.Asynchronous :
SqlConnectionString
.DEFAULT.Asynchronous);
2046
SqlConnectionString
connectionOptions = SqlConnectionFactory.FindSqlConnectionOptions(key);
2052
throw SQL.ChangePasswordUseOfUnallowedKey(
SqlConnectionString
.KEY.AttachDBFilename);
2055
throw SQL.ChangePasswordUseOfUnallowedKey(
SqlConnectionString
.KEY.Context_Connection);
2096
SqlConnectionString
connectionOptions = SqlConnectionFactory.FindSqlConnectionOptions(key);
2108
throw SQL.ChangePasswordUseOfUnallowedKey(
SqlConnectionString
.KEY.AttachDBFilename);
2112
throw SQL.ChangePasswordUseOfUnallowedKey(
SqlConnectionString
.KEY.Context_Connection);
2125
private static void ChangePassword(string connectionString,
SqlConnectionString
connectionOptions, SqlCredential credential, string newPassword, SecureString newSecurePassword ) {
fx\src\data\System\Data\SqlClient\SqlConnectionFactory.cs (15)
40
SqlConnectionString
opt = (
SqlConnectionString
)options;
47
SqlConnectionString
userOpt = null;
49
userOpt = (
SqlConnectionString
)userOptions;
52
userOpt = (
SqlConnectionString
)(sqlOwningConnection.UserConnectionOptions);
94
SqlConnectionString
sseopt = new SqlConnectionString(opt, opt.DataSource, true /* user instance=true */, false /* set Enlist = false */);
134
SqlConnectionString
result = new SqlConnectionString(connectionString);
141
if (((
SqlConnectionString
) connectionOptions).UserInstance) {
149
SqlConnectionString
opt = (
SqlConnectionString
)connectionOptions;
218
return new SqlConnectionPoolGroupProviderInfo((
SqlConnectionString
)connectionOptions);
222
internal static
SqlConnectionString
FindSqlConnectionOptions(SqlConnectionPoolKey key) {
223
SqlConnectionString
connectionOptions = (
SqlConnectionString
)SingletonInstance.FindConnectionOptions(key);
233
private SqlInternalConnectionSmi GetContextConnection(
SqlConnectionString
options, object providerInfo) {
fx\src\data\System\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs (6)
22
internal SqlConnectionPoolGroupProviderInfo(
SqlConnectionString
connectionOptions) {
60
private System.Security.PermissionSet CreateFailoverPermission(
SqlConnectionString
userConnectionOptions, string actualFailoverPartner) {
77
if (null == userConnectionOptions[
SqlConnectionString
.KEY.FailoverPartner]) {
78
keywordToReplace =
SqlConnectionString
.KEY.Data_Source;
81
keywordToReplace =
SqlConnectionString
.KEY.FailoverPartner;
88
internal void FailoverCheck(SqlInternalConnection connection, bool actualUseFailoverPartner,
SqlConnectionString
userConnectionOptions, string actualFailoverPartner) {
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (1)
486
internal SqlConnectionString(
SqlConnectionString
connectionOptions, string dataSource, bool userInstance, bool? setEnlistValue) : base(connectionOptions) {
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (26)
178
Dictionary<string, Keywords> hash = new Dictionary<string, Keywords>(KeywordsCount +
SqlConnectionString
.SynonymCount, StringComparer.OrdinalIgnoreCase);
240
Debug.Assert((KeywordsCount +
SqlConnectionString
.SynonymCount) == hash.Count, "initial expected size is incorrect");
714
case
SqlConnectionString
.NETLIB.AppleTalk:
715
value =
SqlConnectionString
.NETLIB.AppleTalk;
717
case
SqlConnectionString
.NETLIB.BanyanVines:
718
value =
SqlConnectionString
.NETLIB.BanyanVines;
720
case
SqlConnectionString
.NETLIB.IPXSPX:
721
value =
SqlConnectionString
.NETLIB.IPXSPX;
723
case
SqlConnectionString
.NETLIB.Multiprotocol:
724
value =
SqlConnectionString
.NETLIB.Multiprotocol;
726
case
SqlConnectionString
.NETLIB.NamedPipes:
727
value =
SqlConnectionString
.NETLIB.NamedPipes;
729
case
SqlConnectionString
.NETLIB.SharedMemory:
730
value =
SqlConnectionString
.NETLIB.SharedMemory;
732
case
SqlConnectionString
.NETLIB.TCPIP:
733
value =
SqlConnectionString
.NETLIB.TCPIP;
735
case
SqlConnectionString
.NETLIB.VIA:
736
value =
SqlConnectionString
.NETLIB.VIA;
1242
return
SqlConnectionString
.NETLIB.NamedPipes;
1245
return
SqlConnectionString
.NETLIB.SharedMemory;
1248
return
SqlConnectionString
.NETLIB.TCPIP;
1251
return
SqlConnectionString
.NETLIB.VIA;
1268
case
SqlConnectionString
.NETLIB.NamedPipes:
1270
case
SqlConnectionString
.NETLIB.SharedMemory:
1272
case
SqlConnectionString
.NETLIB.TCPIP:
1274
case
SqlConnectionString
.NETLIB.VIA:
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (32)
61
private
SqlConnectionString
.TypeSystem _typeSystem;
532
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && col.IsNewKatmaiDateTimeType) {
552
else if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && col.IsLargeUdt) {
553
if (_typeSystem ==
SqlConnectionString
.TypeSystem.SQLServer2005) {
561
else if (_typeSystem !=
SqlConnectionString
.TypeSystem.SQLServer2000) {
601
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && col.IsNewKatmaiDateTimeType) {
1177
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && metaData.IsNewKatmaiDateTimeType) {
1180
else if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && metaData.IsLargeUdt) {
1181
if (_typeSystem ==
SqlConnectionString
.TypeSystem.SQLServer2005) {
1189
else if (_typeSystem !=
SqlConnectionString
.TypeSystem.SQLServer2000) {
1242
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && metaData.IsNewKatmaiDateTimeType) {
1246
else if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && metaData.IsLargeUdt) {
1247
if (_typeSystem ==
SqlConnectionString
.TypeSystem.SQLServer2005) {
1255
else if (_typeSystem !=
SqlConnectionString
.TypeSystem.SQLServer2000) {
1331
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && metaData.IsNewKatmaiDateTimeType) {
1334
else if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && metaData.IsLargeUdt) {
1335
if (_typeSystem ==
SqlConnectionString
.TypeSystem.SQLServer2005) {
1343
else if (_typeSystem !=
SqlConnectionString
.TypeSystem.SQLServer2000) {
2235
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && _metaData[i].IsNewKatmaiDateTimeType) {
2309
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && _metaData[i].IsNewKatmaiDateTimeType)
2367
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && _metaData[i].IsNewKatmaiDateTimeType) {
2378
if (_typeSystem !=
SqlConnectionString
.TypeSystem.SQLServer2000) {
2434
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && metaData.IsNewKatmaiDateTimeType) {
2437
else if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && metaData.IsLargeUdt) {
2440
else if (_typeSystem !=
SqlConnectionString
.TypeSystem.SQLServer2000) {
2496
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && _metaData[i].IsNewKatmaiDateTimeType) {
2534
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005) {
2553
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005) {
2586
if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && metaData.IsNewKatmaiDateTimeType) {
2594
else if (_typeSystem <=
SqlConnectionString
.TypeSystem.SQLServer2005 && metaData.IsLargeUdt) {
2597
else if (_typeSystem !=
SqlConnectionString
.TypeSystem.SQLServer2000) {
2720
Debug.Assert(_typeSystem ==
SqlConnectionString
.TypeSystem.SQLServer2000, "Should not be in this function under anything else but SQLServer2000");
fx\src\data\System\Data\SqlClient\SqlDependency.cs (2)
591
SqlConnectionString
connectionStringObject = new SqlConnectionString(connectionString);
716
SqlConnectionString
connectionStringObject = new SqlConnectionString(connectionString);
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (2)
119
SqlConnectionString
connStringObj = (
SqlConnectionString
) _con.ConnectionOptions;
fx\src\data\System\Data\SqlClient\SqlInternalConnection.cs (3)
29
private readonly
SqlConnectionString
_connectionOptions;
62
internal SqlInternalConnection(
SqlConnectionString
connectionOptions) : base() {
73
internal
SqlConnectionString
ConnectionOptions {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (2)
111
internal SqlInternalConnectionSmi(
SqlConnectionString
connectionOptions, SmiContext smiContext) : base(connectionOptions) {
199
return ConnectionOptions.TransactionBinding ==
SqlConnectionString
.TransactionBindingEnum.ImplicitUnbind;
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (14)
322
SqlConnectionString
connectionOptions,
328
SqlConnectionString
userConnectionOptions = null, // NOTE: userConnectionOptions may be different to connectionOptions if the connection string has been expanded (see SqlConnectionString.Expand)
761
bool requireExplicitTransactionUnbind = ConnectionOptions.TransactionBinding ==
SqlConnectionString
.TransactionBindingEnum.ExplicitUnbind;
1372
private void OpenLoginEnlist(TimeoutTimer timeout,
SqlConnectionString
connectionOptions, SqlCredential credential,
1464
SqlConnectionString
connectionOptions, SqlCredential credential, TimeoutTimer timeout) {
1664
private bool ShouldDisableTnir(
SqlConnectionString
connectionOptions)
1675
bool isTnirExplicitlySpecifiedInConnectionOptions = connectionOptions.Parsetable[
SqlConnectionString
.KEY.TransparentNetworkIPResolution] != null;
1682
private bool AttemptRetryADAuthWithTimeoutError(SqlException sqlex,
SqlConnectionString
connectionOptions, TimeoutTimer timeout) {
1720
SqlConnectionString
connectionOptions,
1916
private void ResolveExtendedServerName(ServerInfo serverInfo, bool aliasLookup,
SqlConnectionString
options) {
1943
SqlConnectionString
.VerifyLocalHostAndFixup(ref host, true, true /*fix-up to "."*/);
2709
internal ServerInfo(
SqlConnectionString
userOptions) : this(userOptions, userOptions.DataSource) {}
2712
internal ServerInfo (
SqlConnectionString
userOptions, string serverName) {
2730
internal ServerInfo(
SqlConnectionString
userOptions, RoutingInfo routing, string preRoutingServerName) {
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (1)
453
internal int packetSize =
SqlConnectionString
.DEFAULT.Packet_Size; // packet size
fx\src\data\System\Data\SqlClient\TdsParserStaticMethods.cs (2)
74
if (
SqlConnectionString
.ValidProtocal (parsedProtocol)) {
81
protocol = (string)
SqlConnectionString
.NetlibMapping()[parsedProtocol];