1 write to credential
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
1310login.credential = _credential;
12 references to credential
System.Data (12)
fx\src\data\System\Data\SqlClient\TdsParser.cs (12)
7119Debug.Assert(rec.credential == null || (rec.credential != null && TdsEnums.MAXLEN_USERNAME >= rec.credential.UserId.Length), "_credential.UserId.Length exceeds the max length for this value"); 7122Debug.Assert(rec.credential == null || (rec.credential != null && TdsEnums.MAXLEN_PASSWORD >= rec.credential.Password.Length), "_credential.Password.Length exceeds the max length for this value"); 7124Debug.Assert(rec.credential != null || rec.userName != null || rec.password != null, "cannot mix the new secure password system and the connection string based password"); 7145if (rec.credential != null) { 7146userName = rec.credential.UserId; 7147encryptedPasswordLengthInBytes = rec.credential.Password.Length * 2; 7421if (rec.credential != null) { 7422_physicalStateObj.WriteSecureString(rec.credential.Password);