Is there an existing method in C# to extract the file path from a string that represents a ConnectionString to a SqlCE .sdf file? I want t
ConnectionString
SqlCE
You could just create the connection and get the data source from it as a property:
string data; using (var conn = new SqlConnection(connectionString)) { data = conn.DataSource; }