void CODataSource::SetProviderString(LPCOLESTR strProviderString);

Parameters

        [in] strProviderString:   

            Indicates a string containing provider-specific and extended connection information.

Remarks

        Calls this function to set a string containing provider-specific and extended connection information before opening and initializing a connection to an OLEDB provider. Here is a special example of how to use this function to create or open an ISAM file, MS excel file.

        CODataSource    ds;
        ds.SetProviderString(L"Excel 4.0;");
        ds.SetServer(L"C:\\test.xls"); 
        ds.Open(L"Provider=Microsoft.Jet.OLEDB.4.0;");

CODataSource Class Overview & Class Members