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