hi, Sorry for the intereption. My little experience in database suggest that you should not use the MFC Database classes if you want to develop a database. Instead use the "xxado.dll" to develop your app. In the stdafx.h file write these lines include include #import "path\\xxado.dll" namespace "EOF, adoEOF" Then use ur desired objects as follows: CoInitialze(NULL); IConnectionPtr pCon; IRecordsetPtr pRes; pCon.Open(connectionstring); pRecordset.open(query,pCon ,etc); ... CoUninitialize();