DbConnectionStringBuilder csb = _Factory.CreateConnectionStringBuilder(); . . . case "System.Data.OleDb": if (_Provider != "") { csb.Add("Provider", _Provider); } if (_DataSource != "") { csb.Add("Data Source", _DataSource); } if (_InitialCatalog != "") { csb.Add("Initial Catalog", _InitialCatalog); } if (_TrustedConnection) { csb.Add("Integrated Security", "SSPI"); } else { if (_UserName != "") { csb.Add("User Id", _UserName); } if (_Password != "") { csb.Add("pwd", _Password); } } break;Then outside the switch I have:
return csb.ConnectionString;
When I step to this line and hover over 'csb', I seeProvider=Microsoft.Jet.OLEDB.4.0;Data Source="M:\APEX Master Database.mdb";Integrated Security=SSPIWhen I hover over 'ConnectionString' I see:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"M:\\APEX Master Database.mdb\";Integrated Security=SSPINotice the extra slashes before and after the database name.