代码如下: _variant_t RecordsAffected;
CString strSQL;
         strSQL=" CREATE TABLE "+ FileTitle +"(id INTEGER,start INTEGER,end INTEGER,key INTEGER,duration FLOAT)";    
try
{
m_pConnection->Execute((_bstr_t)strSQL,&RecordsAffected,adCmdText);
}
catch(_com_error *e)         //catch error
{
AfxMessageBox(e->ErrorMessage());
}