... CDataSource accountSource; VARIANT currentCatalog; accountSource.GetProperty( DBPROPSET_DATASOURCE, DBPROP_CURRENTCATALOG, ¤tCatalog ); ...