title: ConnectionString loses password after connection.Open
body: <p>i'm using ADO.NET to get some information from the database on a server,<br>
  so this is what i do:</p>
  
  <pre><code>string conStr = "Data Source=myServer\SQLEXPRESS;Initial Catalog=DBName;User ID=myUser;Password=myPassword";
  
  SqlConnection conn = new SqlConnection(conStr);
  
  conn.Open();
  // do stuff
  conn.Close();
  </code></pre>
  
  <p>but after calling <strong>Open</strong> method i noticed that <strong>conn.ConnectionString</strong> is losing the password so it becomes:</p>
  
  <pre><code>"Data Source=myServer\SQLEXPRESS;Initial Catalog=DBName;User ID=myUser;"
  </code></pre>
  
  <p>which causes exception with any SqlCommand afterwords<br>
  how to fix this?<br>
  Note:The strange thing is that does not happen always<br>
  Edit: i don't think it has anything to do with the command it self but anyway  </p>
  
  <pre><code>SqlCommand command = new SqlCommand("select GetDate()", conn);
  SqlDataReader reader = command.ExecuteReader();
  </code></pre>