title: C# - Get file path from connection string
body: <p>Is there an existing method in C# to extract the file path from a string that represents a <code>ConnectionString</code> to a <code>SqlCE</code> <em>.sdf</em> file? I want to check if the file exists at initialization and back it up if the file has been modified.</p>
  
  <p>Sample connection string:</p>
  
  <pre><code>strConn = "Data Source=|DataDirectory|\dbAlias.sdf";
  </code></pre>